| 269 | //} |
| 270 | |
| 271 | void NetObject::setScopeAlways() |
| 272 | { |
| 273 | if(mNetFlags.test(Ghostable) && !mNetFlags.test(IsGhost)) |
| 274 | { |
| 275 | mNetFlags.set(ScopeAlways); |
| 276 | |
| 277 | // if it's a ghost always object, add it to the ghost always set |
| 278 | // for ClientReps created later. |
| 279 | |
| 280 | Sim::getGhostAlwaysSet()->addObject(this); |
| 281 | |
| 282 | // add it to all Connections that already exist. |
| 283 | |
| 284 | SimGroup *clientGroup = Sim::getClientGroup(); |
| 285 | SimGroup::iterator i; |
| 286 | for(i = clientGroup->begin(); i != clientGroup->end(); i++) |
| 287 | { |
| 288 | NetConnection *con = (NetConnection *) (*i); |
| 289 | if(con->isGhosting()) |
| 290 | con->objectInScope(this); |
| 291 | } |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | void NetObject::clearScopeAlways() |
| 296 | { |
no test coverage detected