XSGridEditor
1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
|
tile struct to caculate path More...
Public Member Functions | |
XSTile (Vector3Int tilePos, XSITileNode node) | |
XSTile (Vector3Int tilePos, XSITileNode node, TileFunc isWalkable) | |
XSTile (Vector3Int tilePos, XSITileNode node, TileFunc isWalkable, TileFunc canBeDustFunc) | |
virtual bool | IsWalkable () |
virtual bool | CanBeDust () |
virtual bool | PassNearRule (XSTile tile, Vector3Int direct, int tileOffYMax) |
Static Public Member Functions | |
static XSTile | Default () |
return default value More... | |
Protected Attributes | |
Vector3 | worldPos |
Properties | |
Vector3? | WorldPos [get, set] |
Vector3Int | TilePos = new Vector3Int() [get] |
int | Cost [get] |
tile move cost More... | |
Accessibility | Access [get] |
XSITileNode | Node [get] |
this node in scene More... | |
TileFunc | IsWalkableFunc = (tilePos) => true [get, set] |
the tile can walkable (the enemy will block the way) More... | |
TileFunc | CanBeDustFunc = (tilePos) => true [get, set] |
Whether this tile can be the end of path (two units cannot in the same tile) More... | |
List< XSTile > | NearTileList = new List<XSTile>() [get] |
tile struct to caculate path
|
inline |
|
inline |
|
inline |
|
virtual |
|
static |
return default value
|
virtual |
|
inlinevirtual |
|
protected |
|
get |
|
getsetprotected |
Whether this tile can be the end of path (two units cannot in the same tile)
|
get |
tile move cost
|
getsetprotected |
the tile can walkable (the enemy will block the way)
|
get |
this node in scene
|
get |
|
getset |