| 41 | } |
| 42 | |
| 43 | void 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 | |
| 61 | void RulesExt::ExtData::InitializeConstants() |
| 62 | { |
nothing calls this directly
no test coverage detected