2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-04-09 21:49:02 -07:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include <memory>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
2022-02-19 05:04:45 -08:00
|
|
|
#include "Runtime/Streams/IOStreams.hpp"
|
2019-09-27 19:53:03 -07:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Character/CAdditiveAnimPlayback.hpp"
|
|
|
|
#include "Runtime/Character/CAnimation.hpp"
|
|
|
|
#include "Runtime/Character/CHalfTransition.hpp"
|
|
|
|
#include "Runtime/Character/CTransition.hpp"
|
2016-04-09 21:49:02 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2016-04-09 21:49:02 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
class CAnimationSet {
|
|
|
|
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;
|
|
|
|
std::vector<std::pair<CAssetId, CAssetId>> x50_animRes;
|
2016-04-10 14:22:59 -07:00
|
|
|
|
2016-04-09 21:49:02 -07:00
|
|
|
public:
|
2020-03-30 20:52:22 -07:00
|
|
|
explicit CAnimationSet(CInputStream& in);
|
2016-04-12 23:07:23 -07:00
|
|
|
|
2018-12-07 21:30:43 -08: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; }
|
|
|
|
const std::vector<std::pair<CAssetId, CAssetId>>& GetAnimResIds() const { return x50_animRes; }
|
2016-04-09 21:49:02 -07:00
|
|
|
};
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|