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

Method init_scoping

Engine/source/afx/afxMagicSpell.cpp:1489–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487}
1488
1489void afxMagicSpell::init_scoping()
1490{
1491 if (mScoping_initialized)
1492 {
1493 //Con::printf("SCOPING ALREADY INITIALIZED");
1494 return;
1495 }
1496
1497 if (isServerObject())
1498 {
1499 if (explicit_clients.size() > 0)
1500 {
1501 for (U32 i = 0; i < explicit_clients.size(); i++)
1502 explicit_clients[i]->objectLocalScopeAlways(this);
1503 }
1504 else
1505 {
1506 mNetFlags.set(Ghostable);
1507 setScopeAlways();
1508 }
1509 mScoping_initialized = true;
1510 }
1511}
1512
1513void afxMagicSpell::setup_casting_fx()
1514{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected