Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DNavMeshLoader Class Reference

The U4DNavMeshLoader class loads the navigation mesh imported from blender. More...

Public Member Functions

bool loadDigitalAssetFile (const char *uFile)
 loads the digital asset file representing the nav mesh More...
 
bool loadNavMesh (U4DNavMesh *uNavMesh, std::string uNavMeshName)
 loads the nav mesh node data More...
 
void loadNavMeshNodeIndex (U4DNavMeshNode &uNavMeshNode, std::string uStringData)
 loads the nav mesh node indices More...
 
void loadNavMeshNodeLocation (U4DNavMeshNode &uNavMeshNode, std::string uStringData)
 loads the nav mesh node location More...
 
void loadNavMeshNodeNeighbours (U4DNavMeshNode &uNavMeshNode, std::string uStringData)
 loads the nav mesh node neighbours More...
 
void stringToFloat (std::string uStringData, std::vector< float > *uFloatData)
 Method which converts a string value to float value. More...
 
void stringToInt (std::string uStringData, std::vector< int > *uIntData)
 Method which converts a string value to int value. More...
 

Static Public Member Functions

static U4DNavMeshLoadersharedInstance ()
 Shared Instance for the navigation mesh loader Singleton.
 

Static Public Attributes

static U4DNavMeshLoaderinstance =0
 Instance for the navigation mesh loader Singleton.
 

Protected Member Functions

 U4DNavMeshLoader ()
 Constructor for the navigation mesh loader.
 
 ~U4DNavMeshLoader ()
 Destructor for the navigation mesh loader.
 

Detailed Description

The U4DNavMeshLoader class loads the navigation mesh imported from blender.

Member Function Documentation

◆ loadDigitalAssetFile()

bool U4DEngine::U4DNavMeshLoader::loadDigitalAssetFile ( const char *  uFile)

loads the digital asset file representing the nav mesh

Parameters
uFilename of file
Returns
true if the file was loaded

◆ loadNavMesh()

bool U4DEngine::U4DNavMeshLoader::loadNavMesh ( U4DNavMesh uNavMesh,
std::string  uNavMeshName 
)

loads the nav mesh node data

Parameters
uNavMeshpointer to the navmesh object. The nav mesh data will be loaded into this object.
uNavMeshNamename of nav mesh as specified in blender
Returns
true if the data was properly loaded into the navmesh object

◆ loadNavMeshNodeIndex()

void U4DEngine::U4DNavMeshLoader::loadNavMeshNodeIndex ( U4DNavMeshNode uNavMeshNode,
std::string  uStringData 
)

loads the nav mesh node indices

Parameters
uNavMeshNodecurrent nav mesh node object
uStringDatadata containing the index data

◆ loadNavMeshNodeLocation()

void U4DEngine::U4DNavMeshLoader::loadNavMeshNodeLocation ( U4DNavMeshNode uNavMeshNode,
std::string  uStringData 
)

loads the nav mesh node location

Parameters
uNavMeshNodecurrent nav mesh node object
uStringDatadata containing the location value

◆ loadNavMeshNodeNeighbours()

void U4DEngine::U4DNavMeshLoader::loadNavMeshNodeNeighbours ( U4DNavMeshNode uNavMeshNode,
std::string  uStringData 
)

loads the nav mesh node neighbours

Parameters
uNavMeshNodecurrent nav mesh node object
uStringDatadata containing the neighbours indices values

◆ stringToFloat()

void U4DEngine::U4DNavMeshLoader::stringToFloat ( std::string  uStringData,
std::vector< float > *  uFloatData 
)

Method which converts a string value to float value.

Parameters
uStringDatastring data
uFloatDatafloat data

◆ stringToInt()

void U4DEngine::U4DNavMeshLoader::stringToInt ( std::string  uStringData,
std::vector< int > *  uIntData 
)

Method which converts a string value to int value.

Parameters
uStringDatastring data
uIntDataint data