Match and link CTransition

Former-commit-id: 4e0df3d957
This commit is contained in:
2022-12-08 15:01:45 -08:00
parent 0d13bb1a4d
commit bcb87c3223
10 changed files with 104 additions and 54 deletions

View File

@@ -0,0 +1,18 @@
#ifndef _CMETAANIMFACTORY_20COPY
#define _CMETAANIMFACTORY_20COPY
#ifndef _CMETAANIMFACTORY
#define _CMETAANIMFACTORY
#include "rstl/rc_ptr.hpp"
class IMetaTrans;
class CInputStream;
class CMetaTransFactory {
public:
static rstl::rc_ptr< IMetaTrans > CreateMetaTrans(CInputStream& in);
};
#endif // _CMETAANIMFACTORY
#endif // _CMETAANIMFACTORY_20COPY

View File

@@ -0,0 +1,24 @@
#ifndef _CTRANSITION
#define _CTRANSITION
#include "rstl/rc_ptr.hpp"
#include "rstl/pair.hpp"
class IMetaTrans;
class CInputStream;
class CTransition {
uint x0_id;
uint x4_animA;
uint x8_animB;
rstl::rc_ptr<IMetaTrans> xc_trans;
public:
explicit CTransition(CInputStream& in);
u32 GetAnimA() const { return x4_animA; }
u32 GetAnimB() const { return x8_animB; }
rstl::pair<uint, uint> GetAnimPair() const { return rstl::pair<uint, uint>(x4_animA, x8_animB); }
const rstl::rc_ptr<IMetaTrans>& GetMetaTrans() const { return xc_trans; }
};
#endif // _CTRANSITION