Table of Contents

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

uint

ScaleX

X Scale of the tiles

float ScaleX { get; }

Property Value

float

ScaleY

Y Scale of the tiles

float ScaleY { get; }

Property Value

float

SelectedTile

Current chosen palette index

int SelectedTile { get; set; }

Property Value

int

TilesPerRow

Number of tiles per row in the palette

uint TilesPerRow { get; }

Property Value

uint

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 float

seconds since editor started