Interface ITilePalette
- Namespace
- RetroEditor.Plugins
- Assembly
- RetroEditor.dll
Interface for a tile map palette - used by the TileMapWidget class
public interface ITilePalette
Properties
MaxTiles
Maximum number of tiles that can be selected from
uint MaxTiles { get; }
Property Value
ScaleX
X Scale of the tiles
float ScaleX { get; }
Property Value
ScaleY
Y Scale of the tiles
float ScaleY { get; }
Property Value
SelectedTile
Current chosen palette index
int SelectedTile { get; set; }
Property Value
TilesPerRow
Number of tiles per row in the palette
uint TilesPerRow { get; }
Property Value
Methods
FetchTiles()
Get the tile palette
ReadOnlySpan<ITile> FetchTiles()
Returns
- ReadOnlySpan<ITile>
Array of tiles
Update(float)
Can be used to refresh the tile map graphics
void Update(float seconds)
Parameters
seconds
floatseconds since editor started