From 2de366be0fa75e571c605e017b5604bccbdb75bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 5 Jun 2020 17:09:06 +0200 Subject: Initial commit --- src/KingSystem/ActorSystem/actActorFactory.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/KingSystem/ActorSystem/actActorFactory.cpp (limited to 'src/KingSystem/ActorSystem/actActorFactory.cpp') diff --git a/src/KingSystem/ActorSystem/actActorFactory.cpp b/src/KingSystem/ActorSystem/actActorFactory.cpp new file mode 100644 index 00000000..6a835f3f --- /dev/null +++ b/src/KingSystem/ActorSystem/actActorFactory.cpp @@ -0,0 +1,21 @@ +#include "KingSystem/ActorSystem/actActorFactory.h" +#include "KingSystem/ActorSystem/actActorCreator.h" + +namespace ksys::act { + +SEAD_SINGLETON_DISPOSER_IMPL(ActorFactoryHolder) + +void ActorFactory::dummy() {} + +void ActorFactory::dummy2() {} + +ActorFactoryHolder::~ActorFactoryHolder() { + ActorCreator::deleteInstance(); +} + +void ActorFactoryHolder::init(sead::Heap* heap) { + ActorCreator::createInstance(heap); + ActorCreator::instance()->setActorFactory(&mFactory); +} + +} // namespace ksys::act -- cgit v1.2.3