A 2D Farming RPG
This is just a simple 2D farming RPG game
|
Holds grid information x and y coordinate. More...
Public Member Functions | |
GridCoordinate (int xAxis, int yAxis) | |
Constructor to pass x and y axis data More... | |
Static Public Member Functions | |
static | operator Vector2 (GridCoordinate gridCoordinate) |
Explicitly convert grid coordinate to Vector2 values. More... | |
static | operator Vector2Int (GridCoordinate gridCoordinate) |
Explicitly convert grid coordinate to Vector2Int values. More... | |
static | operator Vector3 (GridCoordinate gridCoordinate) |
Explicitly convert grid coordinate to Vector3 values. More... | |
static | operator Vector3Int (GridCoordinate gridCoordinate) |
Explicitly convert grid coordinate to Vector3Int values. More... | |
Data Fields | |
int | x |
Define x Axis More... | |
int | y |
Define y Axis More... | |
Holds grid information x and y coordinate.
Definition at line 7 of file GridCoordinate.cs.
|
inline |
Constructor to pass x and y axis data
xAxis | |
yAxis |
Definition at line 20 of file GridCoordinate.cs.
|
inlineexplicitstatic |
Explicitly convert grid coordinate to Vector2 values.
gridCoordinate |
Definition at line 30 of file GridCoordinate.cs.
|
inlineexplicitstatic |
Explicitly convert grid coordinate to Vector2Int values.
gridCoordinate |
Definition at line 39 of file GridCoordinate.cs.
|
inlineexplicitstatic |
Explicitly convert grid coordinate to Vector3 values.
gridCoordinate |
Definition at line 48 of file GridCoordinate.cs.
|
inlineexplicitstatic |
Explicitly convert grid coordinate to Vector3Int values.
gridCoordinate |
Definition at line 57 of file GridCoordinate.cs.
int GridCoordinate.x |
Define x Axis
Definition at line 10 of file GridCoordinate.cs.
int GridCoordinate.y |
Define y Axis
Definition at line 13 of file GridCoordinate.cs.