gwnavruntime/database/activeguids.h Source File
Go to the documentation of this file.
10 #ifndef Navigation_ActiveGuids_H
11 #define Navigation_ActiveGuids_H
26 void AddActiveKyGuid(const KyGuid& kyGuid);
27 void RemoveActiveKyGuid(const KyGuid& kyGuid);
30 KY_INLINE
bool IsGuidCompoundCompatible(const GuidCompound& guidCompound)
const
32 if (guidCompound.GetKyGuidCount() == 1)
36 return IsNotMainGuidCompoundCompatible(guidCompound);
39 void Clear() { m_activeGuids.ClearAndRelease(); }
42 bool IsNotMainGuidCompoundCompatible(
const GuidCompound& guidCompound)
const;
45 KyArray<KyGuid, MemStat_NavData> m_activeGuids;
48 class GuidCompoundSorter
54 GuidCompoundSorter() {}
55 class GuidCompoundSorterElement
59 GuidCompoundSorterElement() : m_guidCompound(
KY_NULL), m_navMeshElement(KY_NULL) {}
60 GuidCompoundSorterElement(NavMeshElement* navMeshElement,
const GuidCompound* guidCompound) : m_guidCompound(guidCompound), m_navMeshElement(navMeshElement) {}
62 const GuidCompound* m_guidCompound;
63 NavMeshElement* m_navMeshElement;
66 void AddNavMeshElement(NavMeshElement* navMeshElement);
67 void RemoveNavMeshElement(NavMeshElement* navMnavMeshElementesh);
68 void Sort(ActiveGuids& activeGuids,
CellBox& currentUpdateCellBox,
bool forceActiveIfAlone =
false);
71 KyArray<GuidCompoundSorterElement, MemStat_NavData> m_guidCompoundArray;
77 #endif //Navigation_ActiveGuids_H
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:34
#define KY_NULL
Null value.
Definition: types.h:247
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137