MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / transmitPath

Method transmitPath

Engine/source/scene/pathManager.cpp:271–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void PathManager::transmitPath(const U32 id)
272{
273 AssertFatal(mIsServer, "Error, cannot call transmitNewPath on client path manager!");
274
275 // Post to all active clients that have already received their paths...
276 //
277 SimGroup* pClientGroup = Sim::getClientGroup();
278 for (SimGroup::iterator itr = pClientGroup->begin(); itr != pClientGroup->end(); itr++) {
279 NetConnection* nc = dynamic_cast<NetConnection*>(*itr);
280 if (nc && nc->missionPathsSent())
281 {
282 // Transmit the updated path...
283 PathManagerEvent* event = new PathManagerEvent;
284 event->modifiedPath = id;
285 event->clearPaths = false;
286 event->path = *(mPaths[id]);
287 nc->postNetEvent(event);
288 }
289 }
290}
291
292void PathManager::getPathPosition(const U32 id,
293 const F64 msPosition,

Callers

nothing calls this directly

Calls 4

missionPathsSentMethod · 0.80
postNetEventMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected