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

Method transmitPaths

Engine/source/scene/pathManager.cpp:260–273  ·  view source on GitHub ↗

--------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

258
259//--------------------------------------------------------------------------
260void PathManager::transmitPaths(NetConnection* nc)
261{
262 AssertFatal(mIsServer, "Error, cannot call transmitPaths on client path manager!");
263
264 // Send over paths
265 for(S32 i = 0; i < mPaths.size(); i++)
266 {
267 PathManagerEvent* event = new PathManagerEvent;
268 event->clearPaths = (i == 0);
269 event->modifiedPath = i;
270 event->path = *(mPaths[i]);
271 nc->postNetEvent(event);
272 }
273}
274
275void PathManager::transmitPath(const U32 id)
276{

Callers 1

netConnection.cppFile · 0.80

Calls 2

postNetEventMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected