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.
|
interface to XSGridMgr More...
Public Member Functions | |
List< XSTile > | GetAllTiles () |
void | ClearAllTiles () |
void | Init (XSGridHelper helper) |
Vector3Int | WorldToTile (Vector3 worldPos) |
change world position to tile position More... | |
Vector3 | WorldToTileCenterWorld (Vector3 worldPos) |
get the center position of the tile from a world position More... | |
Vector3 | TileToTileCenterWorld (Vector3Int tilePos) |
XSTile | AddXSTile (XSITileNode tileData) |
bool | RemoveXSTileByWorldPos (Vector3 worldPos) |
bool | HasXSTile (Vector3Int tilePos) |
bool | HasXSTileByWorldPos (Vector3 worldPos) |
get tile from a world position More... | |
XSTile | GetXSTile (Vector3Int tilePos) |
XSTile | GetXSTileByWorldPos (Vector3 worldPos) |
bool | TryGetXSTile (Vector3Int tilePos, out XSTile tile) |
bool | TryGetXSTileByWorldPos (Vector3 worldPos, out XSTile tile) |
void | UpdateTileSize (Vector3 tileSize) |
Dictionary< Vector3Int, List< Vector3 > > | FindAllPath (XSTile srcTile, int moveRange) |
List< Vector3 > | FindPath (XSTile srcTile, XSTile destTile) |
interface to XSGridMgr
XSTile XSSLG.XSIGridMgr.AddXSTile | ( | XSITileNode | tileData | ) |
Implemented in XSSLG.XSGridMgr.
void XSSLG.XSIGridMgr.ClearAllTiles | ( | ) |
Implemented in XSSLG.XSGridMgr.
Dictionary<Vector3Int, List<Vector3> > XSSLG.XSIGridMgr.FindAllPath | ( | XSTile | srcTile, |
int | moveRange | ||
) |
Implemented in XSSLG.XSGridMgr.
Implemented in XSSLG.XSGridMgr.
List<XSTile> XSSLG.XSIGridMgr.GetAllTiles | ( | ) |
Implemented in XSSLG.XSGridMgr.
XSTile XSSLG.XSIGridMgr.GetXSTile | ( | Vector3Int | tilePos | ) |
Implemented in XSSLG.XSGridMgr.
Implemented in XSSLG.XSGridMgr.
bool XSSLG.XSIGridMgr.HasXSTile | ( | Vector3Int | tilePos | ) |
Implemented in XSSLG.XSGridMgr.
bool XSSLG.XSIGridMgr.HasXSTileByWorldPos | ( | Vector3 | worldPos | ) |
get tile from a world position
worldPos | unity`s world position |
Implemented in XSSLG.XSGridMgr.
void XSSLG.XSIGridMgr.Init | ( | XSGridHelper | helper | ) |
Implemented in XSSLG.XSGridMgr.
bool XSSLG.XSIGridMgr.RemoveXSTileByWorldPos | ( | Vector3 | worldPos | ) |
Implemented in XSSLG.XSGridMgr.
Vector3 XSSLG.XSIGridMgr.TileToTileCenterWorld | ( | Vector3Int | tilePos | ) |
Implemented in XSSLG.XSGridMgr.
bool XSSLG.XSIGridMgr.TryGetXSTile | ( | Vector3Int | tilePos, |
out XSTile | tile | ||
) |
Implemented in XSSLG.XSGridMgr.
Implemented in XSSLG.XSGridMgr.
void XSSLG.XSIGridMgr.UpdateTileSize | ( | Vector3 | tileSize | ) |
Implemented in XSSLG.XSGridMgr.
Vector3Int XSSLG.XSIGridMgr.WorldToTile | ( | Vector3 | worldPos | ) |
change world position to tile position
worldPos | unity`s world position |
Implemented in XSSLG.XSGridMgr.
get the center position of the tile from a world position
worldPos | unity`s world position |
Implemented in XSSLG.XSGridMgr.