2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/Character/CMetaTransFactory.hpp"
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
class CTransition {
|
|
|
|
u32 x0_id;
|
|
|
|
u32 x4_animA;
|
|
|
|
u32 x8_animB;
|
|
|
|
std::shared_ptr<IMetaTrans> xc_trans;
|
2016-04-10 21:22:59 +00:00
|
|
|
|
|
|
|
public:
|
2020-03-31 03:52:22 +00:00
|
|
|
explicit CTransition(CInputStream& in);
|
2018-12-08 05:30:43 +00:00
|
|
|
u32 GetAnimA() const { return x4_animA; }
|
|
|
|
u32 GetAnimB() const { return x8_animB; }
|
|
|
|
std::pair<u32, u32> GetAnimPair() const { return {x4_animA, x8_animB}; }
|
|
|
|
const std::shared_ptr<IMetaTrans>& GetMetaTrans() const { return xc_trans; }
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|