Table of Contents

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

uint

Width

Width of the layer in tiles

uint Width { get; }

Property Value

uint

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)

Parameters

x uint

x offset of modified tile in tiles

y uint

y offset of modified tile in tiles

tile uint

tile index