diff options
| author | Léo Lam <leo@leolam.fr> | 2020-06-05 17:09:06 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-08-18 22:50:25 +0200 |
| commit | 2de366be0fa75e571c605e017b5604bccbdb75bf (patch) | |
| tree | b8044fc96bba792b1875067032da2fd4498a44a3 /src/KingSystem/ActorSystem/actActorFactory.cpp | |
Initial commit
Diffstat (limited to 'src/KingSystem/ActorSystem/actActorFactory.cpp')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActorFactory.cpp | 21 |
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 |
