Kaim::NavMeshElement Class Reference

Kaim::NavMeshElement Class Reference

#include <navmeshelement.h>

Class Description

This class is a runtime wrapper of a NavMeshElementBlob.

It is used to store runtime data associated to this NavMeshElementBlob and to gathers all the corresponding NavCells. It is also used as a safe guard against the removal of the underlying NavMeshElementBlob to prevent us from accessing free memory and crashing.

Functions

bool IsStillLoaded () const
 Returns false if the NavData containing corresponding NavMeshElementBlob has been removed from the Database. More...
 
const NavMeshElementBlobGetNavMeshElementBlob () const
 
const GuidCompound & GetGuidCompound () const
 Returns the GuidCompound that uniquely identifies this NavMeshElement. More...
 

For internal use only

Databasem_database
 
NavCell ** m_navCells
 
KyUInt32 m_numberOfCells
 
KyUInt32 m_indexInCollection
 
KyUInt32 m_guidCompoundSortedIdx
 
bool m_guidCompoundIsCompatible
 
void OnRemove ()
 
KyUInt32 GetIndexInCollection () const
 
void SetIndexInCollection (KyUInt32 indexInCollection)
 
static Ptr< NavMeshElementCreate (const NavMeshElementBlob &navMeshElementBlob, Database *database, MemoryHeap *pheap=nullptr)
 

Member Function Documentation

const GuidCompound& Kaim::NavMeshElement::GetGuidCompound ( ) const
inline

Returns the GuidCompound that uniquely identifies this NavMeshElement.

bool Kaim::NavMeshElement::IsStillLoaded ( ) const
inline

Returns false if the NavData containing corresponding NavMeshElementBlob has been removed from the Database.


The documentation for this class was generated from the following files: