mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
RuntimeCommon: Use const on member functions where applicable
Adds missing const qualifiers on class member functions that don't modify instance state.
This commit is contained in:
@@ -566,7 +566,7 @@ void CElementGen::UpdatePSTranslationAndOrientation() {
|
||||
sepo->GetValue(x74_curFrame, x2c0_SEPO);
|
||||
}
|
||||
|
||||
std::unique_ptr<CParticleGen> CElementGen::ConstructChildParticleSystem(const TToken<CGenDescription>& desc) {
|
||||
std::unique_ptr<CParticleGen> CElementGen::ConstructChildParticleSystem(const TToken<CGenDescription>& desc) const {
|
||||
CElementGen* ret = new CElementGen(desc, EModelOrientationType::Normal,
|
||||
x26d_27_enableOPTS ? EOptionalSystemFlags::Two : EOptionalSystemFlags::One);
|
||||
ret->x26d_26_modelsUseLights = x26d_26_modelsUseLights;
|
||||
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
void CreateNewParticles(int);
|
||||
void UpdatePSTranslationAndOrientation();
|
||||
void UpdateChildParticleSystems(double);
|
||||
std::unique_ptr<CParticleGen> ConstructChildParticleSystem(const TToken<CGenDescription>&);
|
||||
std::unique_ptr<CParticleGen> ConstructChildParticleSystem(const TToken<CGenDescription>&) const;
|
||||
void UpdateLightParameters();
|
||||
void BuildParticleSystemBounds();
|
||||
u32 GetEmitterTime() const { return x74_curFrame; }
|
||||
|
||||
Reference in New Issue
Block a user