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

Method onAdd

Engine/source/gui/worldEditor/editor.cpp:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72//------------------------------------------------------------------------------
73
74bool EditManager::onAdd()
75{
76 if(!Parent::onAdd())
77 return(false);
78
79 // hook the namespace
80 const char * name = getName();
81 if(name && name[0] && getClassRep())
82 {
83 Namespace * parent = getClassRep()->getNameSpace();
84 Con::linkNamespaces(parent->mName, name);
85 mNameSpace = Con::lookupNamespace(name);
86 }
87
88 return(true);
89}
90
91//------------------------------------------------------------------------------
92

Callers

nothing calls this directly

Calls 4

linkNamespacesFunction · 0.85
lookupNamespaceFunction · 0.85
getNameSpaceMethod · 0.80
getNameFunction · 0.50

Tested by

no test coverage detected