mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 09:47:43 +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:
@@ -15,14 +15,11 @@ class CGunController {
|
||||
CGSFidget x30_fidget;
|
||||
EGunState x50_gunState = EGunState::Inactive;
|
||||
s32 x54_curAnimId = -1;
|
||||
bool x58_24_animDone : 1;
|
||||
bool x58_25_enteredComboFire : 1;
|
||||
bool x58_24_animDone : 1 = true;
|
||||
bool x58_25_enteredComboFire : 1 = false;
|
||||
|
||||
public:
|
||||
explicit CGunController(CModelData& modelData) : x0_modelData(modelData) {
|
||||
x58_24_animDone = true;
|
||||
x58_25_enteredComboFire = false;
|
||||
}
|
||||
explicit CGunController(CModelData& modelData) : x0_modelData(modelData) {}
|
||||
|
||||
void UnLoadFidget() { x30_fidget.UnLoadAnim(); }
|
||||
void LoadFidgetAnimAsync(CStateManager& mgr, s32 type, s32 gunId, s32 animSet);
|
||||
|
||||
Reference in New Issue
Block a user