summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actActorFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/ActorSystem/actActorFactory.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actActorFactory.cpp21
1 files changed, 21 insertions, 0 deletions
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