MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / RegisterModule

Method RegisterModule

engine/Poseidon/Foundation/Modules/Modules.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#pragma clang diagnostic pop
36
37void RegistrationList::RegisterModule(RegistrationItem* item)
38{
39 for (RegistrationItem* walk = Start(); NotEnd(walk); walk = Advance(walk))
40 {
41 if (item->level <= walk->level)
42 {
43 InsertBefore(walk, item);
44 return;
45 }
46 }
47
48 // no existing object has higher level
49 // we have the highest and we need to be added at the list end
50 Add(item);
51}
52
53void RegistrationList::InitModules()
54{

Callers 1

RegisterModuleFunction · 0.80

Calls 1

AddClass · 0.85

Tested by

no test coverage detected