2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 19:26:09 +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:
Lioncash
2020-04-20 00:57:50 -04:00
parent 2103c38f54
commit 554893ef85
184 changed files with 587 additions and 1117 deletions

View File

@@ -84,13 +84,13 @@ protected:
// 0x1: load request, 0x2: muzzle fx, 0x4: projectile data, 0x8: anims, 0x10: everything else
u32 x210_loadFlags = 0;
CAssetId x214_ancsId;
bool x218_24 : 1;
bool x218_25_enableCharge : 1;
bool x218_26_loaded : 1;
bool x218_24 : 1 = false;
bool x218_25_enableCharge : 1 = false;
bool x218_26_loaded : 1 = false;
// Initialize in selected beam's pose, rather than power beam's pose
bool x218_27_subtypeBasePose : 1;
bool x218_28_suitArmLocked : 1;
bool x218_29_drawHologram : 1;
bool x218_27_subtypeBasePose : 1 = false;
bool x218_28_suitArmLocked : 1 = false;
bool x218_29_drawHologram : 1 = false;
void AllocResPools(CPlayerState::EBeamId beam);
void FreeResPools();