MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / LoadAfterTypeData

Method LoadAfterTypeData

src/Ext/Rules/Body.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void RulesExt::LoadAfterTypeData(RulesClass* pThis, CCINIClass* pINI)
44{
45 for (const auto& pTechnoType : TechnoTypeClass::Array)
46 {
47 if (const auto pTechnoTypeExt = TechnoTypeExt::ExtMap.Find(pTechnoType))
48 {
49 // Spawner range
50 if (pTechnoTypeExt->Spawner_LimitRange)
51 pTechnoTypeExt->CalculateSpawnerRange();
52 }
53 }
54
55 if (pINI == CCINIClass::INI_Rules)
56 Data->InitializeAfterTypeData(pThis);
57
58 Data->LoadAfterTypeData(pThis, pINI);
59}
60
61void RulesExt::ExtData::InitializeConstants()
62{

Callers

nothing calls this directly

Calls 3

CalculateSpawnerRangeMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected