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

Method transmitPaths

Engine/source/scene/pathManager.cpp:256–269  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 3

netConnection.cppFile · 0.80

Calls 2

postNetEventMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected