2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 04:49:02 +00:00
|
|
|
|
|
|
|
#include "IOStreams.hpp"
|
2016-04-10 21:22:59 +00:00
|
|
|
#include "CAnimation.hpp"
|
|
|
|
#include "CTransition.hpp"
|
|
|
|
#include "CHalfTransition.hpp"
|
2016-04-16 03:24:25 +00:00
|
|
|
#include "CAdditiveAnimPlayback.hpp"
|
2016-04-10 04:49:02 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CAnimationSet
|
|
|
|
{
|
2016-04-10 21:22:59 +00:00
|
|
|
u16 x0_tableCount;
|
|
|
|
std::vector<CAnimation> x4_animations;
|
|
|
|
std::vector<CTransition> x14_transitions;
|
|
|
|
std::shared_ptr<IMetaTrans> x24_defaultTransition;
|
|
|
|
std::vector<std::pair<u32, CAdditiveAnimationInfo>> x28_additiveInfo;
|
|
|
|
CAdditiveAnimationInfo x38_defaultAdditiveInfo;
|
|
|
|
std::vector<CHalfTransition> x40_halfTransitions;
|
2017-08-13 05:26:14 +00:00
|
|
|
std::vector<std::pair<CAssetId, CAssetId>> x50_animRes;
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2016-04-10 04:49:02 +00:00
|
|
|
public:
|
|
|
|
CAnimationSet(CInputStream& in);
|
2016-04-13 06:07:23 +00:00
|
|
|
|
2016-09-10 04:50:00 +00:00
|
|
|
const std::vector<CAnimation>& GetAnimations() const { return x4_animations; }
|
|
|
|
const std::vector<CTransition>& GetTransitions() const { return x14_transitions; }
|
|
|
|
const std::shared_ptr<IMetaTrans>& GetDefaultTransition() const { return x24_defaultTransition; }
|
|
|
|
const std::vector<CHalfTransition>& GetHalfTransitions() const { return x40_halfTransitions; }
|
|
|
|
const std::vector<std::pair<u32, CAdditiveAnimationInfo>>& GetAdditiveInfo() const { return x28_additiveInfo; }
|
|
|
|
const CAdditiveAnimationInfo& GetDefaultAdditiveInfo() const { return x38_defaultAdditiveInfo; }
|
2017-08-13 05:26:14 +00:00
|
|
|
const std::vector<std::pair<CAssetId, CAssetId>>& GetAnimResIds() const { return x50_animRes; }
|
2016-04-10 04:49:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|