summaryrefslogtreecommitdiff
path: root/src/KingSystem/World/worldJob.cpp
blob: 7f0cd1fff4a87ed71d7b455e3e21cb4e45d34e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "KingSystem/World/worldJob.h"
#include "KingSystem/World/worldManager.h"

namespace ksys::world {

Job::Job() = default;

Job::~Job() = default;

void Job::init(sead::Heap* heap) {
    init_(heap);
}

void Job::invoke() {
    switch (Manager::instance()->getCalcType()) {
    case CalcType::_0:
        calc_();
        break;
    case CalcType::_1:
        calcType1_();
        break;
    case CalcType::_2:
        calcType2_();
        break;
    case CalcType::Invalid:
        break;
    }
}

}  // namespace ksys::world