#include <navmeshelement.h>
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 NavMeshElementBlob * | GetNavMeshElementBlob () const |
| const GuidCompound & | GetGuidCompound () const |
| Returns the GuidCompound that uniquely identifies this NavMeshElement. More... | |
For internal use only | |
| Database * | m_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< NavMeshElement > | Create (const NavMeshElementBlob &navMeshElementBlob, Database *database, MemoryHeap *pheap=nullptr) |
|
inline |
Returns the GuidCompound that uniquely identifies this NavMeshElement.
|
inline |
Returns false if the NavData containing corresponding NavMeshElementBlob has been removed from the Database.