CAnimationParameters: Provide operator!=
Provides logical symmetry.
This commit is contained in:
parent
f498088bed
commit
9bcb2f288d
|
@ -22,7 +22,7 @@ public:
|
||||||
explicit CAnimationParameters(IInputStream& rSCLY, EGame Game);
|
explicit CAnimationParameters(IInputStream& rSCLY, EGame Game);
|
||||||
|
|
||||||
CAnimationParameters(const CAnimationParameters&) = default;
|
CAnimationParameters(const CAnimationParameters&) = default;
|
||||||
CAnimationParameters& operator=(const CAnimationParameters& rkOther) = default;
|
CAnimationParameters& operator=(const CAnimationParameters&) = default;
|
||||||
|
|
||||||
void Write(IOutputStream& rSCLY);
|
void Write(IOutputStream& rSCLY);
|
||||||
void Serialize(IArchive& rArc);
|
void Serialize(IArchive& rArc);
|
||||||
|
@ -58,14 +58,18 @@ public:
|
||||||
void SetResource(const CAssetID& rkID);
|
void SetResource(const CAssetID& rkID);
|
||||||
void SetUnknown(uint32 Index, uint32 Value);
|
void SetUnknown(uint32 Index, uint32 Value);
|
||||||
|
|
||||||
bool operator==(const CAnimationParameters& rkOther) const
|
bool operator==(const CAnimationParameters& other) const
|
||||||
{
|
{
|
||||||
return mGame == rkOther.mGame &&
|
return mGame == other.mGame &&
|
||||||
mCharacterID == rkOther.mCharacterID &&
|
mCharacterID == other.mCharacterID &&
|
||||||
mCharIndex == rkOther.mCharIndex &&
|
mCharIndex == other.mCharIndex &&
|
||||||
mAnimIndex == rkOther.mAnimIndex &&
|
mAnimIndex == other.mAnimIndex &&
|
||||||
mUnknown2 == rkOther.mUnknown2 &&
|
mUnknown2 == other.mUnknown2 &&
|
||||||
mUnknown3 == rkOther.mUnknown3;
|
mUnknown3 == other.mUnknown3;
|
||||||
|
}
|
||||||
|
bool operator!=(const CAnimationParameters& other) const
|
||||||
|
{
|
||||||
|
return !operator==(other);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue