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

Method onAdd

Engine/source/sqlite/SQLiteObject.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool SQLiteObject::onAdd()
95{
96 if (!Parent::onAdd())
97 return false;
98
99 const char *name = getName();
100 if (name && name[0] && getClassRep())
101 {
102 Namespace *parent = getClassRep()->getNameSpace();
103 Con::linkNamespaces(parent->mName, name);
104 mNameSpace = Con::lookupNamespace(name);
105 }
106
107 return true;
108}
109
110// This is the function that gets called when an instance
111// of your object is being removed from the system and being

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