From 156c0e8cd05c90abdc88385b76c47b7f63bf392b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 Oct 2019 19:39:47 -0400 Subject: [PATCH] CCollisionResponseData: Name parameters in function declarations Allows IDEs and other introspection tools to be more useful when indicating parameters in function calls. --- Runtime/Collision/CCollisionResponseData.hpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Runtime/Collision/CCollisionResponseData.hpp b/Runtime/Collision/CCollisionResponseData.hpp index 84ee88a72..92fcd7eb1 100644 --- a/Runtime/Collision/CCollisionResponseData.hpp +++ b/Runtime/Collision/CCollisionResponseData.hpp @@ -127,20 +127,18 @@ class CCollisionResponseData { public: CCollisionResponseData(CInputStream& in, CSimplePool* resPool); - const std::optional>& - GetParticleDescription(EWeaponCollisionResponseTypes) const; - const std::optional>& - GetDecalDescription(EWeaponCollisionResponseTypes type) const; - s32 GetSoundEffectId(EWeaponCollisionResponseTypes) const; - static EWeaponCollisionResponseTypes GetWorldCollisionResponseType(s32); - static bool ResponseTypeIsEnemyShielded(EWeaponCollisionResponseTypes); - static bool ResponseTypeIsEnemyNormal(EWeaponCollisionResponseTypes); - static bool ResponseTypeIsEnemySpecial(EWeaponCollisionResponseTypes); + const std::optional>& GetParticleDescription(EWeaponCollisionResponseTypes type) const; + const std::optional>& GetDecalDescription(EWeaponCollisionResponseTypes type) const; + s32 GetSoundEffectId(EWeaponCollisionResponseTypes type) const; + static EWeaponCollisionResponseTypes GetWorldCollisionResponseType(s32 id); + static bool ResponseTypeIsEnemyShielded(EWeaponCollisionResponseTypes type); + static bool ResponseTypeIsEnemyNormal(EWeaponCollisionResponseTypes type); + static bool ResponseTypeIsEnemySpecial(EWeaponCollisionResponseTypes type); float GetAudibleRange() const { return x30_RNGE; } float GetAudibleFallOff() const { return x34_FOFF; } static FourCC UncookedResType(); }; CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms, - CObjectReference*); + CObjectReference* selfRef); } // namespace urde