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

Method LoadFromINIFile

src/Ext/AnimType/Body.cpp:79–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void AnimTypeExt::ExtData::LoadFromINIFile(CCINIClass* pINI)
80{
81 const char* pID = this->OwnerObject()->ID;
82
83 INI_EX exINI(pINI);
84
85 this->Palette.LoadFromINI(pINI, pID, "CustomPalette");
86 this->CreateUnit.Read(exINI, pID, "CreateUnit");
87 this->CreateUnit_Facing.Read(exINI, pID, "CreateUnit.Facing");
88 this->CreateUnit_InheritDeathFacings.Read(exINI, pID, "CreateUnit.InheritFacings");
89 this->CreateUnit_InheritTurretFacings.Read(exINI, pID, "CreateUnit.InheritTurretFacings");
90 this->CreateUnit_RemapAnim.Read(exINI, pID, "CreateUnit.RemapAnim");
91 this->CreateUnit_Mission.Read(exINI, pID, "CreateUnit.Mission");
92 this->CreateUnit_AIMission.Read(exINI, pID, "CreateUnit.AIMission");
93 this->CreateUnit_Owner.Read(exINI, pID, "CreateUnit.Owner");
94 this->CreateUnit_RandomFacing.Read(exINI, pID, "CreateUnit.RandomFacing");
95 this->CreateUnit_AlwaysSpawnOnGround.Read(exINI, pID, "CreateUnit.AlwaysSpawnOnGround");
96 this->CreateUnit_SpawnParachutedInAir.Read(exINI, pID, "CreateUnit.SpawnParachutedInAir");
97 this->CreateUnit_ConsiderPathfinding.Read(exINI, pID, "CreateUnit.ConsiderPathfinding");
98 this->CreateUnit_SpawnAnim.Read(exINI, pID, "CreateUnit.SpawnAnim");
99 this->CreateUnit_SpawnHeight.Read(exINI, pID, "CreateUnit.SpawnHeight");
100 this->XDrawOffset.Read(exINI, pID, "XDrawOffset");
101 this->HideIfNoOre_Threshold.Read(exINI, pID, "HideIfNoOre.Threshold");
102 this->Layer_UseObjectLayer.Read(exINI, pID, "Layer.UseObjectLayer");
103 this->UseCenterCoordsIfAttached.Read(exINI, pID, "UseCenterCoordsIfAttached");
104 this->Weapon.Read<true>(exINI, pID, "Weapon");
105 this->Damage_Delay.Read(exINI, pID, "Damage.Delay");
106 this->Damage_DealtByInvoker.Read(exINI, pID, "Damage.DealtByInvoker");
107 this->Damage_ApplyOncePerLoop.Read(exINI, pID, "Damage.ApplyOncePerLoop");
108 this->ExplodeOnWater.Read(exINI, pID, "ExplodeOnWater");
109 this->Warhead_Detonate.Read(exINI, pID, "Warhead.Detonate");
110 this->WakeAnim.Read(exINI, pID, "WakeAnim");
111 this->SplashAnims.Read(exINI, pID, "SplashAnims");
112 this->SplashAnims_PickRandom.Read(exINI, pID, "SplashAnims.PickRandom");
113 this->AttachedSystem.Read<true>(exINI, pID, "AttachedSystem");
114 this->AltPalette_ApplyLighting.Read(exINI, pID, "AltPalette.ApplyLighting");
115 this->MakeInfantryOwner.Read(exINI, pID, "MakeInfantryOwner");
116 this->ExtraShadow.Read(exINI, pID, "ExtraShadow");
117 this->DetachedReport.Read(exINI, pID, "DetachedReport");
118 this->VisibleTo.Read(exINI, pID, "VisibleTo");
119 this->VisibleTo_ConsiderInvokerAsOwner.Read(exINI, pID, "VisibleTo.ConsiderInvokerAsOwner");
120 this->RestrictVisibilityIfCloaked.Read(exINI, pID, "RestrictVisibilityIfCloaked");
121 this->DetachOnCloak.Read(exINI, pID, "DetachOnCloak");
122 this->ConstrainFireAnimsToCellSpots.Read(exINI, pID, "ConstrainFireAnimsToCellSpots");
123 this->FireAnimDisallowedLandTypes.Read(exINI, pID, "FireAnimDisallowedLandTypes");
124 this->AttachFireAnimsToParent.Read(exINI, pID, "AttachFireAnimsToParent");
125 this->SmallFireCount.Read(exINI, pID, "SmallFireCount");
126 this->SmallFireAnims.Read(exINI, pID, "SmallFireAnims");
127 this->SmallFireChances.Read(exINI, pID, "SmallFireChances");
128 this->SmallFireDistances.Read(exINI, pID, "SmallFireDistances");
129 this->LargeFireCount.Read(exINI, pID, "LargeFireCount");
130 this->LargeFireAnims.Read(exINI, pID, "LargeFireAnims");
131 this->LargeFireChances.Read(exINI, pID, "LargeFireChances");
132 this->LargeFireDistances.Read(exINI, pID, "LargeFireDistances");
133}
134
135template <typename T>
136void AnimTypeExt::ExtData::Serialize(T& Stm)

Callers

nothing calls this directly

Calls 2

LoadFromINIMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected