mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 08:42:35 +00:00
feat: dump xanims for T5
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace xanim
|
||||
{
|
||||
enum class CompiledXAnimVersion : uint8_t
|
||||
{
|
||||
// IW3, T4
|
||||
VERSION_17 = 17,
|
||||
// T5, T6
|
||||
VERSION_19 = 19
|
||||
};
|
||||
|
||||
namespace binary17
|
||||
{
|
||||
constexpr uint8_t FLAG_LOOPED = 1u;
|
||||
constexpr uint8_t FLAG_DELTA = 2u;
|
||||
} // namespace binary17
|
||||
|
||||
namespace binary19
|
||||
{
|
||||
constexpr uint8_t FLAG_LOOPED = 1u;
|
||||
constexpr uint8_t FLAG_DELTA = 2u;
|
||||
constexpr uint8_t FLAG_LEFT_HAND_GRIP_IK = 4u;
|
||||
constexpr uint8_t FLAG_STREAMABLE = 8u;
|
||||
} // namespace binary19
|
||||
} // namespace xanim
|
||||
@@ -83,7 +83,10 @@ namespace xanim
|
||||
CommonXAnimParts::CommonXAnimParts()
|
||||
: m_num_frames(0),
|
||||
m_looped(false),
|
||||
m_left_hand_grip_ik(false),
|
||||
m_streamable(false),
|
||||
m_frame_rate(0),
|
||||
m_primed_length(0),
|
||||
m_asset_type(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -9,12 +9,6 @@
|
||||
|
||||
namespace xanim
|
||||
{
|
||||
enum class CompiledXAnimVersion : uint8_t
|
||||
{
|
||||
// IW3
|
||||
VERSION_17 = 17
|
||||
};
|
||||
|
||||
enum class QuatType : uint8_t
|
||||
{
|
||||
NO_QUAT = 0,
|
||||
@@ -152,7 +146,10 @@ namespace xanim
|
||||
|
||||
size_t m_num_frames;
|
||||
bool m_looped;
|
||||
bool m_left_hand_grip_ik;
|
||||
bool m_streamable;
|
||||
float m_frame_rate;
|
||||
float m_primed_length;
|
||||
uint8_t m_asset_type;
|
||||
std::vector<BoneTrack> m_bone_tracks;
|
||||
std::vector<CommonXAnimNotifyInfo> m_notifies;
|
||||
|
||||
Reference in New Issue
Block a user