MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / checkAutoUpdate

Method checkAutoUpdate

Engine/source/navigation/navPath.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void NavPath::checkAutoUpdate()
83{
84 EventManager *em = NavMesh::getEventManager();
85 em->removeAll(this);
86 if(mMesh)
87 {
88 if(mAutoUpdate)
89 {
90 em->subscribe(this, "NavMeshRemoved");
91 em->subscribe(this, "NavMeshUpdate");
92 em->subscribe(this, "NavMeshUpdateBox");
93 em->subscribe(this, "NavMeshObstacleAdded");
94 em->subscribe(this, "NavMeshObstacleRemoved");
95 }
96 }
97}
98
99bool NavPath::setProtectedMesh(void *obj, const char *index, const char *data)
100{

Callers 2

setProtectedMeshMethod · 0.80

Calls 2

subscribeMethod · 0.80
removeAllMethod · 0.45

Tested by

no test coverage detected