Struct Tileset
A tileset is an image which houses numerous tiles with unique IDs. This is based off Tiled's format and is interchangable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Inferno.Graphics
Assembly: Inferno.Desktop.dll
Syntax
public struct Tileset
Fields
| Improve this Doc View SourceName
The name of the Tileset
Declaration
public string Name
Field Value
Type | Description |
---|---|
System.String |
Source
The source image for the tiles
Declaration
public Sprite Source
Field Value
Type | Description |
---|---|
Sprite |
TileCount
The number of tiles in the set
Declaration
public int TileCount
Field Value
Type | Description |
---|---|
System.Int32 |
TileHeight
The height of each tile
Declaration
public int TileHeight
Field Value
Type | Description |
---|---|
System.Int32 |
TileWidth
The width of each tile
Declaration
public int TileWidth
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceDrawTile(Renderer, Vector2, Int32)
Draw a tile from the set
Declaration
public void DrawTile(Renderer renderer, Vector2 position, int id)
Parameters
Type | Name | Description |
---|---|---|
Renderer | renderer | The renderer |
Vector2 | position | Position to draw the tile |
System.Int32 | id | The tile ID to draw |