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

Method LoadFromINIFile

src/Ext/WeaponType/Body.cpp:65–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63// load / save
64
65void WeaponTypeExt::ExtData::LoadFromINIFile(CCINIClass* const pINI)
66{
67 auto pThis = this->OwnerObject();
68 const char* pSection = pThis->ID;
69 INI_EX exINI(pINI);
70
71 this->DiskLaser_Radius.Read(exINI, pSection, "DiskLaser.Radius");
72 this->ProjectileRange.Read(exINI, pSection, "ProjectileRange");
73
74 this->Bolt_Disable1.Read(exINI, pSection, "Bolt.Disable1");
75 this->Bolt_Disable2.Read(exINI, pSection, "Bolt.Disable2");
76 this->Bolt_Disable3.Read(exINI, pSection, "Bolt.Disable3");
77
78 this->Bolt_Arcs.Read(exINI, pSection, "Bolt.Arcs");
79
80 this->RadType.Read<true>(exINI, pSection, "RadType");
81
82 this->Strafing.Read(exINI, pSection, "Strafing");
83 this->Strafing_Shots.Read(exINI, pSection, "Strafing.Shots");
84 this->Strafing_SimulateBurst.Read(exINI, pSection, "Strafing.SimulateBurst");
85 this->Strafing_UseAmmoPerShot.Read(exINI, pSection, "Strafing.UseAmmoPerShot");
86 this->Strafing_EndDelay.Read(exINI, pSection, "Strafing.EndDelay");
87 this->CanTarget.Read(exINI, pSection, "CanTarget");
88 this->CanTargetHouses.Read(exINI, pSection, "CanTargetHouses");
89 this->Burst_Delays.Read(exINI, pSection, "Burst.Delays");
90 this->Burst_FireWithinSequence.Read(exINI, pSection, "Burst.FireWithinSequence");
91 this->AreaFire_Target.Read(exINI, pSection, "AreaFire.Target");
92 this->FeedbackWeapon.Read<true>(exINI, pSection, "FeedbackWeapon");
93 this->Laser_IsSingleColor.Read(exINI, pSection, "IsSingleColor");
94 this->ROF_RandomDelay.Read(exINI, pSection, "ROF.RandomDelay");
95 this->ChargeTurret_Delays.Read(exINI, pSection, "ChargeTurret.Delays");
96 this->OmniFire_TurnToTarget.Read(exINI, pSection, "OmniFire.TurnToTarget");
97 this->FireOnce_ResetSequence.Read(exINI, pSection, "FireOnce.ResetSequence");
98 this->ExtraWarheads.Read(exINI, pSection, "ExtraWarheads");
99 this->ExtraWarheads_DamageOverrides.Read(exINI, pSection, "ExtraWarheads.DamageOverrides");
100 this->ExtraWarheads_DetonationChances.Read(exINI, pSection, "ExtraWarheads.DetonationChances");
101 this->ExtraWarheads_FullDetonation.Read(exINI, pSection, "ExtraWarheads.FullDetonation");
102 this->AmbientDamage_Warhead.Read<true>(exINI, pSection, "AmbientDamage.Warhead");
103 this->AmbientDamage_IgnoreTarget.Read(exINI, pSection, "AmbientDamage.IgnoreTarget");
104 this->AttachEffect_RequiredTypes.Read(exINI, pSection, "AttachEffect.RequiredTypes");
105 this->AttachEffect_DisallowedTypes.Read(exINI, pSection, "AttachEffect.DisallowedTypes");
106 exINI.ParseStringList(this->AttachEffect_RequiredGroups, pSection, "AttachEffect.RequiredGroups");
107 exINI.ParseStringList(this->AttachEffect_DisallowedGroups, pSection, "AttachEffect.DisallowedGroups");
108 this->AttachEffect_RequiredMinCounts.Read(exINI, pSection, "AttachEffect.RequiredMinCounts");
109 this->AttachEffect_RequiredMaxCounts.Read(exINI, pSection, "AttachEffect.RequiredMaxCounts");
110 this->AttachEffect_DisallowedMinCounts.Read(exINI, pSection, "AttachEffect.DisallowedMinCounts");
111 this->AttachEffect_DisallowedMaxCounts.Read(exINI, pSection, "AttachEffect.DisallowedMaxCounts");
112 this->AttachEffect_CheckOnFirer.Read(exINI, pSection, "AttachEffect.CheckOnFirer");
113 this->AttachEffect_IgnoreFromSameSource.Read(exINI, pSection, "AttachEffect.IgnoreFromSameSource");
114 this->KickOutPassengers.Read(exINI, pSection, "KickOutPassengers");
115
116 this->Beam_Color.Read(exINI, pSection, "Beam.Color");
117 this->Beam_Duration.Read(exINI, pSection, "Beam.Duration");
118 this->Beam_Amplitude.Read(exINI, pSection, "Beam.Amplitude");
119 this->Beam_IsHouseColor.Read(exINI, pSection, "Beam.IsHouseColor");
120 this->LaserThickness.Read(exINI, pSection, "LaserThickness");
121}
122

Callers

nothing calls this directly

Calls 2

ParseStringListMethod · 0.80
ReadMethod · 0.45

Tested by

no test coverage detected