From c61bee13db85451fd1548a6e57622350ad9a77f3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 25 Mar 2020 03:46:57 -0400 Subject: [PATCH] CParticleElectric: Add parameters to function prototypes Makes the interface more self-documenting. --- Runtime/Particle/CParticleElectric.cpp | 2 +- Runtime/Particle/CParticleElectric.hpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Runtime/Particle/CParticleElectric.cpp b/Runtime/Particle/CParticleElectric.cpp index 5d53cf99d..00c6ef3d2 100644 --- a/Runtime/Particle/CParticleElectric.cpp +++ b/Runtime/Particle/CParticleElectric.cpp @@ -656,7 +656,7 @@ void CParticleElectric::SetLocalScale(const zeus::CVector3f& scale) { } } -void CParticleElectric::SetParticleEmission(bool e) { x450_24_emitting = e; } +void CParticleElectric::SetParticleEmission(bool emitting) { x450_24_emitting = emitting; } void CParticleElectric::SetModulationColor(const zeus::CColor& color) { x1b8_moduColor = color; } diff --git a/Runtime/Particle/CParticleElectric.hpp b/Runtime/Particle/CParticleElectric.hpp index 9cc421928..5ccab1ffb 100644 --- a/Runtime/Particle/CParticleElectric.hpp +++ b/Runtime/Particle/CParticleElectric.hpp @@ -117,14 +117,14 @@ public: CParticleElectric(const TToken& desc); bool Update(double) override; - void Render(const CActorLights* = nullptr) override; - void SetOrientation(const zeus::CTransform&) override; - void SetTranslation(const zeus::CVector3f&) override; - void SetGlobalOrientation(const zeus::CTransform&) override; - void SetGlobalTranslation(const zeus::CVector3f&) override; - void SetGlobalScale(const zeus::CVector3f&) override; - void SetLocalScale(const zeus::CVector3f&) override; - void SetParticleEmission(bool) override; + void Render(const CActorLights* lights = nullptr) override; + void SetOrientation(const zeus::CTransform& orientation) override; + void SetTranslation(const zeus::CVector3f& translation) override; + void SetGlobalOrientation(const zeus::CTransform& orientation) override; + void SetGlobalTranslation(const zeus::CVector3f& translation) override; + void SetGlobalScale(const zeus::CVector3f& scale) override; + void SetLocalScale(const zeus::CVector3f& scale) override; + void SetParticleEmission(bool emitting) override; void SetModulationColor(const zeus::CColor&) override; void SetOverrideIPos(const zeus::CVector3f& vec) { x178_overrideIPos.emplace(vec); } void SetOverrideIVel(const zeus::CVector3f& vec) { x188_overrideIVel.emplace(vec); }