CCollisionResponseData: Name parameters in function declarations

Allows IDEs and other introspection tools to be more useful when
indicating parameters in function calls.
This commit is contained in:
Lioncash 2019-10-29 19:39:47 -04:00
parent 9c391f90e3
commit 156c0e8cd0
1 changed files with 8 additions and 10 deletions

View File

@ -127,20 +127,18 @@ class CCollisionResponseData {
public: public:
CCollisionResponseData(CInputStream& in, CSimplePool* resPool); CCollisionResponseData(CInputStream& in, CSimplePool* resPool);
const std::optional<TLockedToken<CGenDescription>>& const std::optional<TLockedToken<CGenDescription>>& GetParticleDescription(EWeaponCollisionResponseTypes type) const;
GetParticleDescription(EWeaponCollisionResponseTypes) const; const std::optional<TLockedToken<CDecalDescription>>& GetDecalDescription(EWeaponCollisionResponseTypes type) const;
const std::optional<TLockedToken<CDecalDescription>>& s32 GetSoundEffectId(EWeaponCollisionResponseTypes type) const;
GetDecalDescription(EWeaponCollisionResponseTypes type) const; static EWeaponCollisionResponseTypes GetWorldCollisionResponseType(s32 id);
s32 GetSoundEffectId(EWeaponCollisionResponseTypes) const; static bool ResponseTypeIsEnemyShielded(EWeaponCollisionResponseTypes type);
static EWeaponCollisionResponseTypes GetWorldCollisionResponseType(s32); static bool ResponseTypeIsEnemyNormal(EWeaponCollisionResponseTypes type);
static bool ResponseTypeIsEnemyShielded(EWeaponCollisionResponseTypes); static bool ResponseTypeIsEnemySpecial(EWeaponCollisionResponseTypes type);
static bool ResponseTypeIsEnemyNormal(EWeaponCollisionResponseTypes);
static bool ResponseTypeIsEnemySpecial(EWeaponCollisionResponseTypes);
float GetAudibleRange() const { return x30_RNGE; } float GetAudibleRange() const { return x30_RNGE; }
float GetAudibleFallOff() const { return x34_FOFF; } float GetAudibleFallOff() const { return x34_FOFF; }
static FourCC UncookedResType(); static FourCC UncookedResType();
}; };
CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms, CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
CObjectReference*); CObjectReference* selfRef);
} // namespace urde } // namespace urde