|
Nostalgia
2.1.5
|
Cell data are arranged on the grid. More...
Public Member Functions | |
| delegate void | DestroyCallbackFunction (Cell cell) |
| Delegate method that is called when the Cell is destroyed More... | |
| Cell (Map map, Point2 position, Tile tile) | |
| Initializes a new instance of the Nostalgia.Cell class. More... | |
| Cell (Map map, Cell cell) | |
| Copy and initialize an existing Nostalgia.Cell instance. More... | |
| void | SetPartsIndex (int x, int y, int index) |
| Sets the index of the parts. More... | |
| int | GetPartsIndex (int x, int y) |
| Gets the index of the parts. More... | |
| void | SetVertexColor (int x, int y, int index, Color color) |
| Sets the color of the vertex. More... | |
| Color | GetVertexColor (int x, int y, int index) |
| Gets the color of the vertex. More... | |
| bool | CheckCombineMesh (Tile.Type tileType, out int partsIndex, out Color vertexColor) |
| It determines whether or not to join the mesh More... | |
Static Public Member Functions | |
| static int | SetPartsIndex (int partsID, int x, int y, int index) |
| Sets the index of the parts. More... | |
| static int | GetPartsIndex (int partsID, int x, int y) |
| Gets the index of the parts. More... | |
Public Attributes | |
| Map | map |
| Map More... | |
| Point2 | position |
| The position. More... | |
| int | tileIDObsolete |
| The tile index. More... | |
| Tile | tile |
| Tile reference value More... | |
| Point2 | tilePos = Point2.zero |
| Position within the Tile. More... | |
| int | partsID |
| The parts ID. More... | |
| Collider2D | collider |
| The collider. More... | |
Properties | |
| bool | hasCellObject [get] |
| Whether or not you have a CellObject More... | |
| CellObject | cellObject [get, set] |
| Get / Set the CellObject More... | |
Events | |
| DestroyCallbackFunction | destroyCallback |
| Event that is called when the Cell is destroyed More... | |
Cell data are arranged on the grid.
Initializes a new instance of the Nostalgia.Cell class.
Copy and initialize an existing Nostalgia.Cell instance.
| map | Map |
| cell | Source cell |
| bool CheckCombineMesh | ( | Tile.Type | tileType, |
| out int | partsIndex, | ||
| out Color | vertexColor | ||
| ) |
It determines whether or not to join the mesh
| tileType | Tile type |
| partsIndex | Parts index |
| vertexColor | Vertex Color |
true Capable of binding false Join not | delegate void DestroyCallbackFunction | ( | Cell | cell | ) |
|
static |
Gets the index of the parts.
| partsID | Current parts ID. |
| x | The x coordinate(between 0 and 1). |
| y | The y coordinate(between 0 and 1). |
| int GetPartsIndex | ( | int | x, |
| int | y | ||
| ) |
Gets the index of the parts.
| x | The x coordinate(between 0 and 1). |
| y | The y coordinate(between 0 and 1). |
| Color GetVertexColor | ( | int | x, |
| int | y, | ||
| int | index | ||
| ) |
Gets the color of the vertex.
| x | The x coordinate(between 0 and 1). |
| y | The y coordinate(between 0 and 1). |
| index | Vertex Index. |
|
static |
Sets the index of the parts.
| partsID | Current parts ID. |
| x | The x coordinate(between 0 and 1). |
| y | The y coordinate(between 0 and 1). |
| index | Index. |
| void SetPartsIndex | ( | int | x, |
| int | y, | ||
| int | index | ||
| ) |
Sets the index of the parts.
| x | The x coordinate(between 0 and 1). |
| y | The y coordinate(between 0 and 1). |
| index | Index. |
| void SetVertexColor | ( | int | x, |
| int | y, | ||
| int | index, | ||
| Color | color | ||
| ) |
Sets the color of the vertex.
| x | The x coordinate(between 0 and 1). |
| y | The y coordinate(between 0 and 1). |
| index | Vertex Index. |
| color | Vertex Color. |
| Collider2D collider |
The collider.
| int partsID |
The parts ID.
Parts of the state auto tile.
| Point2 position |
The position.
| int tileIDObsolete |
The tile index.
For deprecated, referring to the Nostalgia.Cell.tile.
| Point2 tilePos = Point2.zero |
Position within the Tile.
|
getset |
Get / Set the CellObject
|
get |
Whether or not you have a CellObject
| DestroyCallbackFunction destroyCallback |
Event that is called when the Cell is destroyed