CAnimationParameters: Remove unnecessary inline specifiers

This commit is contained in:
Lioncash 2020-06-15 15:34:57 -04:00
parent d0a32518cd
commit 247fcd37a8
1 changed files with 16 additions and 16 deletions

View File

@ -28,15 +28,15 @@ public:
TString GetCurrentCharacterName(int32 NodeIndex = -1); TString GetCurrentCharacterName(int32 NodeIndex = -1);
// Accessors // Accessors
inline EGame Version() const { return mGame; } EGame Version() const { return mGame; }
inline CAssetID ID() const { return mCharacterID; } CAssetID ID() const { return mCharacterID; }
inline CAnimSet* AnimSet() const { return (CAnimSet*) gpResourceStore->LoadResource(mCharacterID); } CAnimSet* AnimSet() const { return (CAnimSet*) gpResourceStore->LoadResource(mCharacterID); }
inline uint32 CharacterIndex() const { return mCharIndex; } uint32 CharacterIndex() const { return mCharIndex; }
inline uint32 AnimIndex() const { return mAnimIndex; } uint32 AnimIndex() const { return mAnimIndex; }
inline void SetCharIndex(uint32 Index) { mCharIndex = Index; } void SetCharIndex(uint32 Index) { mCharIndex = Index; }
inline void SetAnimIndex(uint32 Index) { mAnimIndex = Index; } void SetAnimIndex(uint32 Index) { mAnimIndex = Index; }
inline void SetGame(EGame Game) void SetGame(EGame Game)
{ {
mGame = Game; mGame = Game;
@ -55,7 +55,7 @@ public:
void SetUnknown(uint32 Index, uint32 Value); void SetUnknown(uint32 Index, uint32 Value);
// Operators // Operators
inline CAnimationParameters& operator=(const CAnimationParameters& rkOther) CAnimationParameters& operator=(const CAnimationParameters& rkOther)
{ {
mGame = rkOther.mGame; mGame = rkOther.mGame;
mCharacterID = rkOther.mCharacterID; mCharacterID = rkOther.mCharacterID;
@ -66,14 +66,14 @@ public:
return *this; return *this;
} }
inline bool operator==(const CAnimationParameters& rkOther) const bool operator==(const CAnimationParameters& rkOther) const
{ {
return ( (mGame == rkOther.mGame) && return mGame == rkOther.mGame &&
(mCharacterID == rkOther.mCharacterID) && mCharacterID == rkOther.mCharacterID &&
(mCharIndex == rkOther.mCharIndex) && mCharIndex == rkOther.mCharIndex &&
(mAnimIndex == rkOther.mAnimIndex) && mAnimIndex == rkOther.mAnimIndex &&
(mUnknown2 == rkOther.mUnknown2) && mUnknown2 == rkOther.mUnknown2 &&
(mUnknown3 == rkOther.mUnknown3) ); mUnknown3 == rkOther.mUnknown3;
} }
}; };