Merge pull request #21 from lioncash/anim
CAnimationParameters: Add missing break in switch cases in SetUnknown()
This commit is contained in:
commit
d0a32518cd
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -225,8 +208,14 @@ void CAnimationParameters::SetUnknown(uint32 Index, uint32 Value)
|
||||||
{
|
{
|
||||||
switch (Index)
|
switch (Index)
|
||||||
{
|
{
|
||||||
case 0: mAnimIndex = Value;
|
case 0:
|
||||||
case 1: mUnknown2 = Value;
|
mAnimIndex = Value;
|
||||||
case 2: mUnknown3 = Value;
|
break;
|
||||||
|
case 1:
|
||||||
|
mUnknown2 = Value;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
mUnknown3 = Value;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue