mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 18:31:21 +00:00
Normalizes the headers for the cpp files in the RuntimeCommon target. Now all headers and source files within the RuntimeCommon/RuntimeCommonB targets are normalized and consistent with one another.
29 lines
830 B
C++
29 lines
830 B
C++
#include "Runtime/Character/CMetaTransFactory.hpp"
|
|
|
|
#include "Runtime/Character/CMetaTransMetaAnim.hpp"
|
|
#include "Runtime/Character/CMetaTransPhaseTrans.hpp"
|
|
#include "Runtime/Character/CMetaTransSnap.hpp"
|
|
#include "Runtime/Character/CMetaTransTrans.hpp"
|
|
|
|
namespace urde {
|
|
|
|
std::shared_ptr<IMetaTrans> CMetaTransFactory::CreateMetaTrans(CInputStream& in) {
|
|
EMetaTransType type = EMetaTransType(in.readUint32Big());
|
|
|
|
switch (type) {
|
|
case EMetaTransType::MetaAnim:
|
|
return std::make_shared<CMetaTransMetaAnim>(in);
|
|
case EMetaTransType::Trans:
|
|
return std::make_shared<CMetaTransTrans>(in);
|
|
case EMetaTransType::PhaseTrans:
|
|
return std::make_shared<CMetaTransPhaseTrans>(in);
|
|
case EMetaTransType::Snap:
|
|
return std::make_shared<CMetaTransSnap>();
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return {};
|
|
}
|
|
} // namespace urde
|