Tileset Class
Definition
Namespace: Brine2D.Tilemap
Represents a tileset \(sprite sheet\) used by a tilemap. Pure data - no rendering dependencies.
Inheritance System.Object → Tileset
| Properties | |
|---|---|
| Columns | Number of tile columns in the tileset image. |
| FirstGid | First tile ID \(GID\) - used by Tiled for multiple tilesets. |
| ImagePath | Path to the tileset image file. |
| Rows | Number of tile rows in the tileset image. |
| TileHeight | Height of each tile in pixels. |
| TileProperties | Properties for specific tiles \(indexed by tile ID\). |
| TileWidth | Width of each tile in pixels. |
| Methods | |
|---|---|
| GetTileSourceRect\(int\) | Gets the source rectangle for a tile ID in the tileset texture. |