CAnimationParameters: Default copy constructor and assignment operator

Same behavior, less code.
This commit is contained in:
Lioncash 2020-06-15 15:36:30 -04:00
parent 247fcd37a8
commit f498088bed
1 changed files with 6 additions and 14 deletions

View File

@ -18,8 +18,12 @@ class CAnimationParameters
public: public:
CAnimationParameters(); CAnimationParameters();
CAnimationParameters(EGame Game); explicit CAnimationParameters(EGame Game);
CAnimationParameters(IInputStream& rSCLY, EGame Game); explicit CAnimationParameters(IInputStream& rSCLY, EGame Game);
CAnimationParameters(const CAnimationParameters&) = default;
CAnimationParameters& operator=(const CAnimationParameters& rkOther) = default;
void Write(IOutputStream& rSCLY); void Write(IOutputStream& rSCLY);
void Serialize(IArchive& rArc); void Serialize(IArchive& rArc);
@ -54,18 +58,6 @@ public:
void SetResource(const CAssetID& rkID); void SetResource(const CAssetID& rkID);
void SetUnknown(uint32 Index, uint32 Value); void SetUnknown(uint32 Index, uint32 Value);
// Operators
CAnimationParameters& operator=(const CAnimationParameters& rkOther)
{
mGame = rkOther.mGame;
mCharacterID = rkOther.mCharacterID;
mCharIndex = rkOther.mCharIndex;
mAnimIndex = rkOther.mAnimIndex;
mUnknown2 = rkOther.mUnknown2;
mUnknown3 = rkOther.mUnknown3;
return *this;
}
bool operator==(const CAnimationParameters& rkOther) const bool operator==(const CAnimationParameters& rkOther) const
{ {
return mGame == rkOther.mGame && return mGame == rkOther.mGame &&