diff options
Diffstat (limited to 'src/Game/Actor/Query/queryWhatMoonName.cpp')
| -rw-r--r-- | src/Game/Actor/Query/queryWhatMoonName.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Game/Actor/Query/queryWhatMoonName.cpp b/src/Game/Actor/Query/queryWhatMoonName.cpp new file mode 100644 index 00000000..c6047f11 --- /dev/null +++ b/src/Game/Actor/Query/queryWhatMoonName.cpp @@ -0,0 +1,20 @@ +#include "Game/Actor/Query/queryWhatMoonName.h" +#include <evfl/Query.h> +#include "KingSystem/World/worldManager.h" + +namespace uking::query { + +WhatMoonName::WhatMoonName(const InitArg& arg) : ksys::act::ai::Query(arg) {} + +WhatMoonName::~WhatMoonName() = default; + +int WhatMoonName::doQuery() { + auto* tm = ksys::world::Manager::instance()->getTimeMgr(); + return static_cast<int>(tm->getMoonType()); +} + +void WhatMoonName::loadParams(const evfl::QueryArg& arg) {} + +void WhatMoonName::loadParams() {} + +} // namespace uking::query |
