mirror of
https://github.com/zeldaret/botw
synced 2026-05-23 06:54:18 -04:00
Implement CheckE3Mode::doQuery
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Game/AI/Query/queryCheckE3Mode.h"
|
||||
#include <evfl/Query.h>
|
||||
#include "Game/E3Mgr.h"
|
||||
|
||||
namespace uking::query {
|
||||
|
||||
@@ -7,9 +8,20 @@ CheckE3Mode::CheckE3Mode(const InitArg& arg) : ksys::act::ai::Query(arg) {}
|
||||
|
||||
CheckE3Mode::~CheckE3Mode() = default;
|
||||
|
||||
// FIXME: implement
|
||||
int CheckE3Mode::doQuery() {
|
||||
return -1;
|
||||
auto* e3m = E3Mgr::instance();
|
||||
if (e3m != nullptr) {
|
||||
if (e3m->isDemoMode0AndNotStageSelect()) {
|
||||
return 1;
|
||||
}
|
||||
if (e3m->isDemoMode1AndNotStageSelect()) {
|
||||
return 2;
|
||||
}
|
||||
if (e3m->isDemoMode2AndNotStageSelect()) {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CheckE3Mode::loadParams(const evfl::QueryArg& arg) {}
|
||||
|
||||
Reference in New Issue
Block a user