CAnimation: Make use of std::array
Same behavior, but more strongly typed.
This commit is contained in:
parent
9f63991a0a
commit
0c784aa305
|
@ -6,6 +6,7 @@
|
||||||
#include "Core/Resource/Animation/CAnimEventData.h"
|
#include "Core/Resource/Animation/CAnimEventData.h"
|
||||||
#include <Common/Math/CQuaternion.h>
|
#include <Common/Math/CQuaternion.h>
|
||||||
#include <Common/Math/CVector3f.h>
|
#include <Common/Math/CVector3f.h>
|
||||||
|
#include <array>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class CAnimation : public CResource
|
class CAnimation : public CResource
|
||||||
|
@ -31,7 +32,7 @@ class CAnimation : public CResource
|
||||||
uint8 RotationChannelIdx = 0xFF;
|
uint8 RotationChannelIdx = 0xFF;
|
||||||
uint8 TranslationChannelIdx = 0xFF;
|
uint8 TranslationChannelIdx = 0xFF;
|
||||||
};
|
};
|
||||||
SBoneChannelInfo mBoneInfo[100];
|
std::array<SBoneChannelInfo, 100> mBoneInfo;
|
||||||
|
|
||||||
TResPtr<CAnimEventData> mpEventData;
|
TResPtr<CAnimEventData> mpEventData;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue