TilePalette() |
Constructor |
TilePalette(BaseTile[] entries) |
Special constructor creating the palette from a collection (recommended for runtime setup) |
Insert(BaseTile tile, int position, ref TilemapData data) |
Insert tile at position. Fixes map data to match changes. Returns true if rebuild is necessary |
Replace(BaseTile tile, int position) |
Replace tile at position. Returns true if rebuild is necessary |
Delete(int position, ref TilemapData data) |
Delete index at position. Fixes map data to match changes. Returns true if rebuild is necessary |
GetTile(int id) |
Get tile at id point. Will ignore zero ids since they represent empty spaces |