mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 02:27:42 +00:00
RuntimeCommonB: Make use of bitfield initializers where applicable
Given that we now target C++20, we can make use of bitfield initializers where applicable.
This commit is contained in:
@@ -158,15 +158,7 @@ CScriptGunTurret::CScriptGunTurret(TUniqueId uid, std::string_view name, ETurret
|
||||
, x428_targettingLightDesc(g_SimplePool->GetObj({SBIG('PART'), turretData.GetTargettingLightRes()}))
|
||||
, x434_frozenEffectDesc(g_SimplePool->GetObj({SBIG('PART'), turretData.GetFrozenEffectRes()}))
|
||||
, x440_chargingEffectDesc(g_SimplePool->GetObj({SBIG('PART'), turretData.GetChargingEffectRes()}))
|
||||
, x44c_panningEffectDesc(g_SimplePool->GetObj({SBIG('PART'), turretData.GetPanningEffectRes()}))
|
||||
, x560_24_dead(false)
|
||||
, x560_25_frozen(false)
|
||||
, x560_26_firedWithSetBurst(false)
|
||||
, x560_27_burstSet(false)
|
||||
, x560_28_hasBeenActivated(false)
|
||||
, x560_29_scriptedStart(false)
|
||||
, x560_30_needsStopClankSound(true)
|
||||
, x560_31_frenzyReverse(false) {
|
||||
, x44c_panningEffectDesc(g_SimplePool->GetObj({SBIG('PART'), turretData.GetPanningEffectRes()})) {
|
||||
if (turretData.GetVisorEffectRes().IsValid())
|
||||
x458_visorEffectDesc = g_SimplePool->GetObj({SBIG('PART'), turretData.GetVisorEffectRes()});
|
||||
x468_idleLight = std::make_unique<CElementGen>(x410_idleLightDesc);
|
||||
|
||||
Reference in New Issue
Block a user