From 51c1ffecd6bc55f7cf4a7d4dcf071e10b3d596a8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 25 Mar 2020 02:46:20 -0400 Subject: [PATCH] CActorContraption: Add names to parameters in prototypes Makes it more self-documenting from the interface alone. --- Runtime/MP1/World/CActorContraption.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Runtime/MP1/World/CActorContraption.hpp b/Runtime/MP1/World/CActorContraption.hpp index 97df40615..ede6bba12 100644 --- a/Runtime/MP1/World/CActorContraption.hpp +++ b/Runtime/MP1/World/CActorContraption.hpp @@ -18,15 +18,16 @@ class CActorContraption : public CScriptActor { CDamageInfo x30c_dInfo; public: - CActorContraption(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, CModelData&&, - const zeus::CAABox&, const CMaterialList&, float, float, const CHealthInfo&, - const CDamageVulnerability&, const CActorParameters&, CAssetId, const CDamageInfo&, bool); + CActorContraption(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf, + CModelData&& mData, const zeus::CAABox& aabox, const CMaterialList& matList, float mass, + float zMomentum, const CHealthInfo& hInfo, const CDamageVulnerability& dVuln, + const CActorParameters& aParams, CAssetId part, const CDamageInfo& dInfo, bool active); void Accept(IVisitor& visitor) override; - void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override; - void Think(float, CStateManager&) override; - void DoUserAnimEvent(CStateManager&, const CInt32POINode&, EUserEventType, float dt) override; - CFlameThrower* CreateFlameThrower(std::string_view, CStateManager&); + void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override; + void Think(float dt, CStateManager& mgr) override; + void DoUserAnimEvent(CStateManager& mgr, const CInt32POINode& node, EUserEventType evType, float dt) override; + CFlameThrower* CreateFlameThrower(std::string_view name, CStateManager& mgr); void ResetFlameThrowers(CStateManager& mgr); }; } // namespace MP1