CAnimationParameters: Make use of in-class variable declarations where applicable
Same behavior, less code.
This commit is contained in:
parent
0096b28294
commit
cf92227587
|
@ -2,33 +2,16 @@
|
|||
#include "CAnimSet.h"
|
||||
#include "Core/GameProject/CResourceStore.h"
|
||||
#include <Common/Log.h>
|
||||
#include <iostream>
|
||||
|
||||
CAnimationParameters::CAnimationParameters()
|
||||
: mGame(EGame::Prime)
|
||||
, mCharIndex(0)
|
||||
, mAnimIndex(0)
|
||||
, mUnknown2(0)
|
||||
, mUnknown3(0)
|
||||
{
|
||||
}
|
||||
CAnimationParameters::CAnimationParameters() = default;
|
||||
|
||||
CAnimationParameters::CAnimationParameters(EGame Game)
|
||||
: mGame(Game)
|
||||
, mCharacterID( CAssetID::InvalidID(Game) )
|
||||
, mCharIndex(0)
|
||||
, mAnimIndex(0)
|
||||
, mUnknown2(0)
|
||||
, mUnknown3(0)
|
||||
: mGame(Game), mCharacterID(CAssetID::InvalidID(Game))
|
||||
{
|
||||
}
|
||||
|
||||
CAnimationParameters::CAnimationParameters(IInputStream& rSCLY, EGame Game)
|
||||
: mGame(Game)
|
||||
, mCharIndex(0)
|
||||
, mAnimIndex(0)
|
||||
, mUnknown2(0)
|
||||
, mUnknown3(0)
|
||||
{
|
||||
if (Game <= EGame::Echoes)
|
||||
{
|
||||
|
|
|
@ -8,13 +8,13 @@ class CModel;
|
|||
|
||||
class CAnimationParameters
|
||||
{
|
||||
EGame mGame;
|
||||
EGame mGame = EGame::Prime;
|
||||
CAssetID mCharacterID;
|
||||
|
||||
uint32 mCharIndex;
|
||||
uint32 mAnimIndex;
|
||||
uint32 mUnknown2;
|
||||
uint32 mUnknown3;
|
||||
uint32 mCharIndex = 0;
|
||||
uint32 mAnimIndex = 0;
|
||||
uint32 mUnknown2 = 0;
|
||||
uint32 mUnknown3 = 0;
|
||||
|
||||
public:
|
||||
CAnimationParameters();
|
||||
|
|
Loading…
Reference in New Issue