MCPcopy Create free account
hub / github.com/ZDoom/Raze / RegisterClass

Method RegisterClass

source/common/objects/dobjtype.cpp:318–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316//==========================================================================
317
318PClass *ClassReg::RegisterClass()
319{
320 // Skip classes that have already been registered
321 if (MyClass != nullptr)
322 {
323 return MyClass;
324 }
325
326 // Add type to list
327 PClass *cls = new PClass;
328
329 SetupClass(cls);
330 cls->InsertIntoHash(true);
331 if (ParentType != nullptr)
332 {
333 cls->ParentClass = ParentType->RegisterClass();
334 }
335 return cls;
336}
337
338//==========================================================================
339//

Callers 1

StaticInitMethod · 0.80

Calls 1

InsertIntoHashMethod · 0.80

Tested by

no test coverage detected