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

Method LoadFromINIFile

src/Ext/ParticleType/Body.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void ParticleTypeExt::ExtData::LoadFromINIFile(CCINIClass* const pINI)
17{
18 auto pThis = this->OwnerObject();
19 const char* pSection = pThis->ID;
20 INI_EX exINI(pINI);
21
22 this->Gas_MaxDriftSpeed.Read(exINI, pSection, "Gas.MaxDriftSpeed");
23
24 if (pThis->StateAIAdvance == 0 && pThis->StartStateAI < pThis->EndStateAI)
25 {
26 Debug::FatalErrorAndExit(Debug::ExitCode::BadINIUsage,
27 "[%s] has StateAIAdvance=0 in conjunction with StartStateAI value less than EndStateAI.\n", pSection);
28 pThis->StateAIAdvance = 1;
29 }
30}
31
32void ParticleTypeExt::ExtData::LoadFromStream(PhobosStreamReader& Stm)
33{

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected