2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 16:31:21 +00:00
metaforce/Runtime/World/CVisorParameters.hpp
Lioncash 554893ef85 RuntimeCommonB: Make use of bitfield initializers where applicable
Given that we now target C++20, we can make use of bitfield initializers
where applicable.
2020-04-20 15:57:25 -04:00

19 lines
420 B
C++

#pragma once
#include "Runtime/GCNTypes.hpp"
namespace urde {
class CVisorParameters {
public:
u8 x0_mask : 4 = 0xf;
bool x0_4_b1 : 1 = false;
bool x0_5_scanPassthrough : 1 = false;
CVisorParameters() = default;
CVisorParameters(u8 mask, bool b1, bool scanPassthrough)
: x0_mask(mask), x0_4_b1(b1), x0_5_scanPassthrough(scanPassthrough) {}
u8 GetMask() const { return x0_mask; }
};
} // namespace urde