diff options
| author | Max Roncace <me@caseif.net> | 2025-08-25 18:33:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-25 15:33:44 -0700 |
| commit | b309e0cf57ba36f0c3e01a205f7e097ae46f389b (patch) | |
| tree | 9737d7a7210b909edf0875d262b5e75399c1ede4 /include/JSystem | |
| parent | 19c8b6995ee3d774f78c4421cba833ec2cea77b4 (diff) | |
Miscellaneous improvements (#2603)
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/JParticle/JPAEmitter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/JSystem/JParticle/JPAEmitter.h b/include/JSystem/JParticle/JPAEmitter.h index b1fae07113..30a7016503 100644 --- a/include/JSystem/JParticle/JPAEmitter.h +++ b/include/JSystem/JParticle/JPAEmitter.h @@ -138,7 +138,7 @@ public: void getGlobalTranslation(JGeometry::TVec3<f32>* out) const { out->set(mGlobalTrs); } void setGlobalDynamicsScale(const JGeometry::TVec3<f32>& i_scale) { mGlobalScl.set(i_scale); } void setGlobalAlpha(u8 alpha) { mGlobalPrmClr.a = alpha; } - u8 getGlobalAlpha() { return mGlobalPrmClr.a; } + u8 getGlobalAlpha() const { return mGlobalPrmClr.a; } void getGlobalPrmColor(GXColor& color) { color = mGlobalPrmClr; } void setGlobalPrmColor(u8 r, u8 g, u8 b) { mGlobalPrmClr.r = r; mGlobalPrmClr.g = g; mGlobalPrmClr.b = b; } void setGlobalEnvColor(u8 r, u8 g, u8 b) { mGlobalEnvClr.r = r; mGlobalEnvClr.g = g; mGlobalEnvClr.b = b; } @@ -198,10 +198,10 @@ public: u32 getUserWork() { return mpUserWork; } void setUserWork(u32 userWork) { mpUserWork = userWork; } - u32 getParticleNumber() { + u32 getParticleNumber() const { return mAlivePtclBase.getNum() + mAlivePtclChld.getNum(); } - bool isEnableDeleteEmitter() { + bool isEnableDeleteEmitter() const { return checkStatus(JPAEmtrStts_EnableDeleteEmitter) && getParticleNumber() == 0; } void setDrawTimes(u8 drawTimes) { mDrawTimes = drawTimes; } |
