summaryrefslogtreecommitdiff
path: root/src/Game/Actor/AI/aiCommonPickedItem.cpp
blob: 9a26bf1e80219cd507dd512e67913728117d8220 (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
31
#include "Game/Actor/AI/aiCommonPickedItem.h"

namespace uking::ai {

CommonPickedItem::CommonPickedItem(const InitArg& arg) : ksys::act::ai::Ai(arg) {}

CommonPickedItem::~CommonPickedItem() = default;

bool CommonPickedItem::init_(sead::Heap* heap) {
    return ksys::act::ai::Ai::init_(heap);
}

void CommonPickedItem::enter_(ksys::act::ai::InlineParamPack* params) {
    ksys::act::ai::Ai::enter_(params);
}

void CommonPickedItem::leave_() {
    ksys::act::ai::Ai::leave_();
}

void CommonPickedItem::loadParams_() {
    getStaticParam(&mCanGetOnBurning_s, "CanGetOnBurning");
    getStaticParam(&mIsControlNoticeDo_s, "IsControlNoticeDo");
    getStaticParam(&mGetAttKeyName_s, "GetAttKeyName");
    getMapUnitParam(&mIsPlayerPut_m, "IsPlayerPut");
    getMapUnitParam(&mDropTable_m, "DropTable");
    getMapUnitParam(&mDropActor_m, "DropActor");
    getAITreeVariable(&mGetNumLeft_a, "GetNumLeft");
}

}  // namespace uking::ai