| 80 | } |
| 81 | |
| 82 | void 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 | |
| 99 | bool NavPath::setProtectedMesh(void *obj, const char *index, const char *data) |
| 100 | { |
no test coverage detected