Nostalgia  2.1.5
TileSet Class Reference

Data of the tile set. More...

Inheritance diagram for TileSet:

Public Member Functions

Tile GetTile (int index)
 Get the tile from the index. More...
 
Tile FindTile (string name)
 Find tile from name. More...
 
int IndexOfTile (Tile tile)
 Get the index from the tile. More...
 
void ReattachCell (Cell cell)
 Re-attach the Cell of Tile More...
 
void ReattachStamp (Stamp stamp)
 Re-attach the Stamp of Tile More...
 
Tile AddTile ()
 Adds the tile. More...
 
Tile InsertTile (int index)
 Inserts the tile. More...
 
void RemoveTile (Tile tile)
 Removes the tile. More...
 
void OnPreDestroy ()
 

Public Attributes

Material material
 The material. More...
 

Properties

int tileCount [get]
 Get the number of tiles. More...
 

Detailed Description

Data of the tile set.

Member Function Documentation

Tile AddTile ( )

Adds the tile.

Returns
The added tile.
Tile FindTile ( string  name)

Find tile from name.

Parameters
namename
Returns
tile
Tile GetTile ( int  index)

Get the tile from the index.

Parameters
indexindex
Returns
tile
int IndexOfTile ( Tile  tile)

Get the index from the tile.

Parameters
tiletile
Returns
index
Tile InsertTile ( int  index)

Inserts the tile.

Returns
The inserted tile.
Parameters
indexIndex of the insert destination.
void OnPreDestroy ( )
void ReattachCell ( Cell  cell)

Re-attach the Cell of Tile

Parameters
cellCell
void ReattachStamp ( Stamp  stamp)

Re-attach the Stamp of Tile

Parameters
stampStamp
void RemoveTile ( Tile  tile)

Removes the tile.

Parameters
tileTile you want to remove.

Member Data Documentation

Material material

The material.

Property Documentation

int tileCount
get

Get the number of tiles.