gwnavruntime/navmesh/navmeshelement.h Source File
Go to the documentation of this file.
35 KY_DEBUG_ASSERTN(
IsStillLoaded(), (
"You Cannot call this function if NavMeshElement has been unloaded or not loaded yet"));
36 return m_navMeshElementBlob;
42 KY_DEBUG_ASSERTN(
IsStillLoaded(), (
"You Cannot call this function if NavMeshElement has been unloaded or not loaded yet"));
49 KyUInt32 GetIndexInCollection()
const {
return m_indexInCollection; }
50 void SetIndexInCollection(
KyUInt32 indexInCollection) { m_indexInCollection = indexInCollection; }
52 static Ptr<NavMeshElement> Create(
const NavMeshElementBlob& navMeshElementBlob, Database* database, MemoryHeap* pheap =
nullptr);
55 static KyUInt32 ComputeSizeForNavMeshElement(
const NavMeshElementBlob& navMeshElementBlob)
57 return sizeof(NavMeshElement) + navMeshElementBlob.GetNavCellBlobCount() * (
KyUInt32)
sizeof(
void*);
60 static KyUInt32 ComputeTotalSizeForNavMeshElement(
const NavMeshElementBlob& navMeshElementBlob);
69 bool m_guidCompoundIsCompatible;
72 const NavMeshElementBlob* m_navMeshElementBlob;
const GuidCompound & GetGuidCompound() const
Returns the GuidCompound that uniquely identifies this NavMeshElement.
Definition: navmeshelement.h:40
This class is a runtime wrapper of a NavMeshElementBlob.
Definition: navmeshelement.h:21
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
GuidCompound m_guidCompound
The GuidCompound that uniquely identifies this NavMeshElementBlob. For internal use. Do not modify.
Definition: navmeshelementblob.h:76
#define KY_REFCOUNT_MALLOC_FREE(ClassName)
Specific to RefCounting, no inheritance involved, used to make RefCount-able classes compatible with ...
Definition: memory.h:141
bool IsStillLoaded() const
Returns false if the NavData containing corresponding NavMeshElementBlob has been removed from the Da...
Definition: navmeshelement.h:31
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
The NavMeshElementBlob contains the NavMesh static data (a set of NavCellBlob) for an element (a Guid...
Definition: navmeshelementblob.h:46