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.
Public Member Functions | List of all members
XSSLG.XSIGridMgr Interface Reference

interface to XSGridMgr More...

Inheritance diagram for XSSLG.XSIGridMgr:
XSSLG.XSGridMgr

Public Member Functions

List< XSTileGetAllTiles ()
 
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< Vector3FindPath (XSTile srcTile, XSTile destTile)
 

Detailed Description

interface to XSGridMgr

Member Function Documentation

◆ AddXSTile()

XSTile XSSLG.XSIGridMgr.AddXSTile ( XSITileNode  tileData)

Implemented in XSSLG.XSGridMgr.

◆ ClearAllTiles()

void XSSLG.XSIGridMgr.ClearAllTiles ( )

Implemented in XSSLG.XSGridMgr.

◆ FindAllPath()

Dictionary<Vector3Int, List<Vector3> > XSSLG.XSIGridMgr.FindAllPath ( XSTile  srcTile,
int  moveRange 
)

Implemented in XSSLG.XSGridMgr.

◆ FindPath()

List<Vector3> XSSLG.XSIGridMgr.FindPath ( XSTile  srcTile,
XSTile  destTile 
)

Implemented in XSSLG.XSGridMgr.

◆ GetAllTiles()

List<XSTile> XSSLG.XSIGridMgr.GetAllTiles ( )

Implemented in XSSLG.XSGridMgr.

◆ GetXSTile()

XSTile XSSLG.XSIGridMgr.GetXSTile ( Vector3Int  tilePos)

Implemented in XSSLG.XSGridMgr.

◆ GetXSTileByWorldPos()

XSTile XSSLG.XSIGridMgr.GetXSTileByWorldPos ( Vector3  worldPos)

Implemented in XSSLG.XSGridMgr.

◆ HasXSTile()

bool XSSLG.XSIGridMgr.HasXSTile ( Vector3Int  tilePos)

Implemented in XSSLG.XSGridMgr.

◆ HasXSTileByWorldPos()

bool XSSLG.XSIGridMgr.HasXSTileByWorldPos ( Vector3  worldPos)

get tile from a world position

Parameters
worldPosunity`s world position

Implemented in XSSLG.XSGridMgr.

◆ Init()

void XSSLG.XSIGridMgr.Init ( XSGridHelper  helper)

Implemented in XSSLG.XSGridMgr.

◆ RemoveXSTileByWorldPos()

bool XSSLG.XSIGridMgr.RemoveXSTileByWorldPos ( Vector3  worldPos)

Implemented in XSSLG.XSGridMgr.

◆ TileToTileCenterWorld()

Vector3 XSSLG.XSIGridMgr.TileToTileCenterWorld ( Vector3Int  tilePos)

Implemented in XSSLG.XSGridMgr.

◆ TryGetXSTile()

bool XSSLG.XSIGridMgr.TryGetXSTile ( Vector3Int  tilePos,
out XSTile  tile 
)

Implemented in XSSLG.XSGridMgr.

◆ TryGetXSTileByWorldPos()

bool XSSLG.XSIGridMgr.TryGetXSTileByWorldPos ( Vector3  worldPos,
out XSTile  tile 
)

Implemented in XSSLG.XSGridMgr.

◆ UpdateTileSize()

void XSSLG.XSIGridMgr.UpdateTileSize ( Vector3  tileSize)

Implemented in XSSLG.XSGridMgr.

◆ WorldToTile()

Vector3Int XSSLG.XSIGridMgr.WorldToTile ( Vector3  worldPos)

change world position to tile position

Parameters
worldPosunity`s world position

Implemented in XSSLG.XSGridMgr.

◆ WorldToTileCenterWorld()

Vector3 XSSLG.XSIGridMgr.WorldToTileCenterWorld ( Vector3  worldPos)

get the center position of the tile from a world position

Parameters
worldPosunity`s world position

Implemented in XSSLG.XSGridMgr.


The documentation for this interface was generated from the following file: