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

Method transmitPath

Engine/source/scene/pathManager.cpp:275–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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