mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 06:19:12 +00:00
CPlayerState: Default CPowerUp constructor
Same behavior but allows the constructor to be considered trivial. While we're at it, we can make the constructors constexpr, considering the data structure only holds two primitives.
This commit is contained in:
@@ -93,8 +93,8 @@ private:
|
|||||||
struct CPowerUp {
|
struct CPowerUp {
|
||||||
u32 x0_amount = 0;
|
u32 x0_amount = 0;
|
||||||
u32 x4_capacity = 0;
|
u32 x4_capacity = 0;
|
||||||
CPowerUp() {}
|
constexpr CPowerUp() = default;
|
||||||
CPowerUp(u32 amount, u32 capacity) : x0_amount(amount), x4_capacity(capacity) {}
|
constexpr CPowerUp(u32 amount, u32 capacity) : x0_amount(amount), x4_capacity(capacity) {}
|
||||||
};
|
};
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user