#include "CMetaTransFactory.hpp" #include "CMetaTransMetaAnim.hpp" #include "CMetaTransTrans.hpp" #include "CMetaTransPhaseTrans.hpp" #include "CMetaTransSnap.hpp" namespace urde { std::shared_ptr CMetaTransFactory::CreateMetaTrans(CInputStream& in) { EMetaTransType type = EMetaTransType(in.readUint32Big()); switch (type) { case EMetaTransType::MetaAnim: return std::make_shared(in); case EMetaTransType::Trans: return std::make_shared(in); case EMetaTransType::PhaseTrans: return std::make_shared(in); case EMetaTransType::Snap: return std::make_shared(); default: break; } return {}; } }