Interface ILayer
- Namespace
- RetroEditor.Plugins
- Assembly
- RetroEditor.dll
Interface for a layer in a tile map
public interface ILayer
Properties
Height
Height of the layer in tiles
uint Height { get; }
Property Value
Width
Width of the layer in tiles
uint Width { get; }
Property Value
Methods
GetMapData()
Get the map data for the layer
ReadOnlySpan<uint> GetMapData()
Returns
- ReadOnlySpan<uint>
Flat array of tile indices
SetTile(uint, uint, uint)
Called when a tile is set in the editor, this should be used to make the change in the games memory
void SetTile(uint x, uint y, uint tile)