summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query/queryBranchByDyeColor.cpp
blob: 30cfe43e24a909a791d96f5b60172b9111bfaa6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "Game/AI/Query/queryBranchByDyeColor.h"
#include <evfl/Query.h>
#include "KingSystem/GameData/gdtCommonFlagsUtils.h"

namespace uking::query {

BranchByDyeColor::BranchByDyeColor(const InitArg& arg) : ksys::act::ai::Query(arg) {}

BranchByDyeColor::~BranchByDyeColor() = default;

int BranchByDyeColor::doQuery() {
    auto index = ksys::gdt::getFlag_ColorChange_MaterialIndex();
    if (index >= 1 && index <= 15) {
        return index;
    }
    return 0;
}

void BranchByDyeColor::loadParams(const evfl::QueryArg& arg) {}

void BranchByDyeColor::loadParams() {}

}  // namespace uking::query