--------------------------------------------------------------------------
| 258 | |
| 259 | //-------------------------------------------------------------------------- |
| 260 | void 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 | |
| 275 | void PathManager::transmitPath(const U32 id) |
| 276 | { |
no test coverage detected