Match and link CAnimation

Former-commit-id: b2bebb982d
This commit is contained in:
Phillip Stephens 2022-12-08 14:45:30 -08:00
parent c3f05117e6
commit 0d13bb1a4d
4 changed files with 26 additions and 1 deletions

View File

@ -473,7 +473,7 @@ LIBS = [
["Kyoto/Basics/COsContextDolphin", True], ["Kyoto/Basics/COsContextDolphin", True],
["Kyoto/Basics/CSWDataDolphin", True], ["Kyoto/Basics/CSWDataDolphin", True],
["Kyoto/Basics/RAssertDolphin", False], ["Kyoto/Basics/RAssertDolphin", False],
"Kyoto/Animation/CAnimation", ["Kyoto/Animation/CAnimation", True],
"Kyoto/Animation/CAnimationManager", "Kyoto/Animation/CAnimationManager",
"Kyoto/Animation/CAnimationSet", "Kyoto/Animation/CAnimationSet",
"Kyoto/Animation/CAnimCharacterSet", "Kyoto/Animation/CAnimCharacterSet",

View File

@ -5,9 +5,11 @@
#include "rstl/string.hpp" #include "rstl/string.hpp"
class IMetaAnim; class IMetaAnim;
class CInputStream;
class CAnimation { class CAnimation {
public: public:
CAnimation(CInputStream& in);
const rstl::rc_ptr< IMetaAnim >& GetMetaAnim() const { return x10_anim; } const rstl::rc_ptr< IMetaAnim >& GetMetaAnim() const { return x10_anim; }
private: private:

View File

@ -0,0 +1,13 @@
#ifndef _CMETAANIMFACTORY
#define _CMETAANIMFACTORY
#include "rstl/rc_ptr.hpp"
class IMetaAnim;
class CInputStream;
class CMetaAnimFactory {
public:
static rstl::rc_ptr< IMetaAnim > CreateMetaAnim(CInputStream& in);
};
#endif // _CMETAANIMFACTORY

View File

@ -0,0 +1,10 @@
#include "Kyoto/Animation/CAnimation.hpp"
#include "Kyoto/Streams/CInputStream.hpp"
#include "Kyoto/Animation/CMetaAnimFactory.hpp"
CAnimation::CAnimation(CInputStream& in)
: x0_name(in)
, x10_anim(CMetaAnimFactory::CreateMetaAnim(in)) {
}