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

Function InitServices

source/common/scripting/interface/vmnatives.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void InitServices()
72{
73 PClass* cls = PClass::FindClass("Service");
74 for (PClass* clss : PClass::AllClasses)
75 {
76 if (clss != cls && cls->IsAncestorOf(clss))
77 {
78 DObject* obj = clss->CreateNew();
79 obj->ObjectFlags |= OF_Transient;
80 AllServices.Insert(clss->TypeName, obj);
81 }
82 }
83 GC::AddMarkerFunc(&MarkServices);
84}
85
86void ClearServices()
87{

Callers 1

LoadScriptsFunction · 0.85

Calls 4

AddMarkerFuncFunction · 0.85
IsAncestorOfMethod · 0.80
CreateNewMethod · 0.80
InsertMethod · 0.45

Tested by

no test coverage detected