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

Method setScopeAlways

Engine/source/sim/netObject.cpp:257–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255//}
256
257void NetObject::setScopeAlways()
258{
259 if(mNetFlags.test(Ghostable) && !mNetFlags.test(IsGhost))
260 {
261 mNetFlags.set(ScopeAlways);
262
263 // if it's a ghost always object, add it to the ghost always set
264 // for ClientReps created later.
265
266 Sim::getGhostAlwaysSet()->addObject(this);
267
268 // add it to all Connections that already exist.
269
270 SimGroup *clientGroup = Sim::getClientGroup();
271 SimGroup::iterator i;
272 for(i = clientGroup->begin(); i != clientGroup->end(); i++)
273 {
274 NetConnection *con = (NetConnection *) (*i);
275 if(con->isGhosting())
276 con->objectInScope(this);
277 }
278 }
279}
280
281void NetObject::clearScopeAlways()
282{

Callers 1

netObject.cppFile · 0.80

Calls 7

isGhostingMethod · 0.80
objectInScopeMethod · 0.80
testMethod · 0.45
setMethod · 0.45
addObjectMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected