summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actActorFactory.cpp
blob: 6a835f3f0ee8bd8cbbaef379e4e2f7843b3b4873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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