MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / initRoot

Function initRoot

Engine/source/console/simManager.cpp:287–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285U32 gNextObjectId;
286
287static void initRoot()
288{
289 gIdDictionary = new SimIdDictionary;
290 gNameDictionary = new SimManagerNameDictionary;
291
292 gRootGroup = new SimGroup();
293 gRootGroup->incRefCount();
294
295 gRootGroup->setId(RootGroupId);
296 gRootGroup->assignName("RootGroup");
297 gRootGroup->registerObject();
298
299 gNextObjectId = DynamicObjectIdFirst;
300}
301
302static void shutdownRoot()
303{

Callers 1

initFunction · 0.85

Calls 4

assignNameMethod · 0.80
incRefCountMethod · 0.45
setIdMethod · 0.45
registerObjectMethod · 0.45

Tested by

no test coverage detected