CAnimationParameters: Make use of in-class variable declarations where applicable

Same behavior, less code.
This commit is contained in:
Lioncash 2020-06-09 04:06:38 -04:00
parent 0096b28294
commit cf92227587
2 changed files with 7 additions and 24 deletions

View File

@ -2,33 +2,16 @@
#include "CAnimSet.h" #include "CAnimSet.h"
#include "Core/GameProject/CResourceStore.h" #include "Core/GameProject/CResourceStore.h"
#include <Common/Log.h> #include <Common/Log.h>
#include <iostream>
CAnimationParameters::CAnimationParameters() CAnimationParameters::CAnimationParameters() = default;
: mGame(EGame::Prime)
, mCharIndex(0)
, mAnimIndex(0)
, mUnknown2(0)
, mUnknown3(0)
{
}
CAnimationParameters::CAnimationParameters(EGame Game) CAnimationParameters::CAnimationParameters(EGame Game)
: mGame(Game) : mGame(Game), mCharacterID(CAssetID::InvalidID(Game))
, mCharacterID( CAssetID::InvalidID(Game) )
, mCharIndex(0)
, mAnimIndex(0)
, mUnknown2(0)
, mUnknown3(0)
{ {
} }
CAnimationParameters::CAnimationParameters(IInputStream& rSCLY, EGame Game) CAnimationParameters::CAnimationParameters(IInputStream& rSCLY, EGame Game)
: mGame(Game) : mGame(Game)
, mCharIndex(0)
, mAnimIndex(0)
, mUnknown2(0)
, mUnknown3(0)
{ {
if (Game <= EGame::Echoes) if (Game <= EGame::Echoes)
{ {

View File

@ -8,13 +8,13 @@ class CModel;
class CAnimationParameters class CAnimationParameters
{ {
EGame mGame; EGame mGame = EGame::Prime;
CAssetID mCharacterID; CAssetID mCharacterID;
uint32 mCharIndex; uint32 mCharIndex = 0;
uint32 mAnimIndex; uint32 mAnimIndex = 0;
uint32 mUnknown2; uint32 mUnknown2 = 0;
uint32 mUnknown3; uint32 mUnknown3 = 0;
public: public:
CAnimationParameters(); CAnimationParameters();