2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 16:06:08 +00:00

CIceSheegoth: Make use of in-class initializers for bitfields

Same behavior, less code.
This commit is contained in:
Lioncash
2020-06-11 10:18:01 -04:00
parent 2a357a1006
commit 58186ad5df
2 changed files with 15 additions and 30 deletions

View File

@@ -132,20 +132,20 @@ class CIceSheegoth : public CPatterned {
rstl::reserved_vector<TUniqueId, 2> xafc_gillColliders;
rstl::reserved_vector<TUniqueId, 10> xb04_;
rstl::reserved_vector<CSegId, 7> xb1c_;
bool xb28_24_shotAt : 1;
bool xb28_25_ : 1;
bool xb28_26_ : 1;
bool xb28_27_ : 1;
bool xb28_28_ : 1;
bool xb28_29_ : 1;
bool xb28_30_ : 1;
bool xb28_31_ : 1;
bool xb29_24_ : 1;
bool xb29_25_ : 1;
bool xb29_26_ : 1;
bool xb29_27_ : 1;
bool xb29_28_ : 1;
bool xb29_29_scanned : 1;
bool xb28_24_shotAt : 1 = false;
bool xb28_25_ : 1 = false;
bool xb28_26_ : 1 = false;
bool xb28_27_ : 1 = false;
bool xb28_28_ : 1 = false;
bool xb28_29_ : 1 = false;
bool xb28_30_ : 1 = false;
bool xb28_31_ : 1 = false;
bool xb29_24_ : 1 = false;
bool xb29_25_ : 1 = false;
bool xb29_26_ : 1 = false;
bool xb29_27_ : 1 = false;
bool xb29_28_ : 1 = false;
bool xb29_29_scanned : 1 = false;
void UpdateTouchBounds();
bool IsMouthCollider(TUniqueId uid) { return xaf8_mouthCollider == uid; }