gwnavruntime/database/navgraphmanager.h Source File
Go to the documentation of this file.
27 KyUInt32 GetNumberOfNavGraph() const;
28 NavGraph* GetNavGraph(
KyUInt32 index) const;
31 NavGraphManager(Database* database);
36 void StartInsertion();
37 NavGraph* InsertNavGraph(const NavGraphBlob* navGraphBlob, NavData* navData);
41 void RemoveNavGraph(NavGraph* navGraph);
44 void LinkWaitingNavGraphs(
CellBox& navGraphUpdateCellBox);
45 bool HasWaitingNavGraphs();
48 NavGraphLinker m_navGraphLinker;
54 Collection<NavGraph*, MemStat_NavData> m_waitingNavGraphs;
55 TrackedCollection<Ptr<NavGraph>, MemStat_NavData> m_navGraphs;
59 KY_INLINE
void NavGraphManager::StartInsertion()
61 KY_LOG_ERROR_IF(m_numberOfNavGraphToUpdate != 0, (
"At this point, the number of Graph to update must be set to 0"));
64 KY_INLINE
void NavGraphManager::StartRemoval()
66 KY_LOG_ERROR_IF(m_numberOfNavGraphToUpdate != 0, (
"At this point, the number of Graph to update must be set to 0"));
70 KY_INLINE
void NavGraphManager::EndRemoval() {}
72 KY_INLINE
KyUInt32 NavGraphManager::GetNumberOfNavGraph()
const {
return m_navGraphs.GetCount(); }
73 KY_INLINE NavGraph* NavGraphManager::GetNavGraph(
KyUInt32 index)
const
75 KY_DEBUG_ASSERTN(index < GetNumberOfNavGraph(), (
"Bad index %u (max is %u)", index, GetNumberOfNavGraph()));
76 return m_navGraphs[index];
79 KY_INLINE
bool NavGraphManager::HasWaitingNavGraphs() {
return m_waitingNavGraphs.IsEmpty() ==
false; }
Box2i CellBox
A type that represents a bounding box around cells in a 2D grid.
Definition: navmeshtypes.h:31
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#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