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

Method setProtectedName

Engine/source/console/simObject.cpp:2263–2274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2261//-----------------------------------------------------------------------------
2262
2263bool SimObject::setProtectedName(void *obj, const char *index, const char *data)
2264{
2265 if (preventNameChanging)
2266 return false;
2267 SimObject* object = static_cast<SimObject*>(obj);
2268
2269 if (object->isProperlyAdded())
2270 object->assignName(data);
2271
2272 // always return false because we assign the name here
2273 return false;
2274}
2275
2276//-----------------------------------------------------------------------------
2277

Callers

nothing calls this directly

Calls 2

isProperlyAddedMethod · 0.80
assignNameMethod · 0.80

Tested by

no test coverage detected