mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:47:42 +00:00
Runtime/Particle: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -54,12 +54,25 @@ void CElementGen::Initialize() {
|
||||
void CElementGen::Shutdown() { CElementGenShaders::Shutdown(); }
|
||||
|
||||
CElementGen::CElementGen(TToken<CGenDescription> gen, EModelOrientationType orientType, EOptionalSystemFlags flags)
|
||||
: x1c_genDesc(std::move(gen)), x2c_orientType(orientType), x27c_randState(x94_randomSeed) {
|
||||
: x1c_genDesc(std::move(gen))
|
||||
, x2c_orientType(orientType)
|
||||
, x26c_24_translationDirty(false)
|
||||
, x26c_25_LIT_(false)
|
||||
, x26c_26_AAPH(false)
|
||||
, x26c_27_ZBUF(false)
|
||||
, x26c_28_zTest(false)
|
||||
, x26c_29_ORNT(false)
|
||||
, x26c_30_MBLR(false)
|
||||
, x26c_31_LINE(false)
|
||||
, x26d_24_FXLL(false)
|
||||
, x26d_25_warmedUp(false)
|
||||
, x26d_26_modelsUseLights(false)
|
||||
, x26d_27_enableOPTS(True(flags & EOptionalSystemFlags::Two))
|
||||
, x26d_28_enableADV(false)
|
||||
, x27c_randState(x94_randomSeed) {
|
||||
CGenDescription* desc = x1c_genDesc.GetObj();
|
||||
x28_loadedGenDesc = desc;
|
||||
|
||||
x26d_27_enableOPTS = True(flags & EOptionalSystemFlags::Two);
|
||||
|
||||
if (desc->x54_x40_TEXR)
|
||||
desc->x54_x40_TEXR->GetValueTexture(0).GetObj();
|
||||
if (desc->x58_x44_TIND)
|
||||
|
||||
Reference in New Issue
Block a user