mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 19:47:44 +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:
@@ -11,11 +11,11 @@ class CGSComboFire {
|
||||
s32 x4_loopState = -1; // In, loop, out
|
||||
s32 x8_cueAnimId = -1;
|
||||
s32 xc_gunId = -1;
|
||||
bool x10_24_over : 1;
|
||||
bool x10_25_idle : 1;
|
||||
bool x10_24_over : 1 = false;
|
||||
bool x10_25_idle : 1 = false;
|
||||
|
||||
public:
|
||||
CGSComboFire() : x10_24_over(false), x10_25_idle(false) {}
|
||||
CGSComboFire() = default;
|
||||
|
||||
bool IsComboOver() const { return x10_24_over; }
|
||||
s32 GetLoopState() const { return x4_loopState; }
|
||||
|
||||
Reference in New Issue
Block a user