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

Method setScopeAlways

Engine/source/sim/netObject.cpp:271–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269//}
270
271void 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
295void NetObject::clearScopeAlways()
296{

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