summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actAiQuery.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-12-19 21:00:37 +0100
committerLéo Lam <leo@leolam.fr>2020-12-19 21:00:37 +0100
commit19ef291d20e0f8e6333271163eabdd75b969928a (patch)
tree4d3f4c76c389f8e33014b0f3c25d48cfcbbb190b /src/KingSystem/ActorSystem/actAiQuery.cpp
parent8a22f0bb50bbe3aa7973d80ff1e4cc62c369f9a3 (diff)
ksys/act: Add two more simple Query functions
Diffstat (limited to 'src/KingSystem/ActorSystem/actAiQuery.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actAiQuery.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/KingSystem/ActorSystem/actAiQuery.cpp b/src/KingSystem/ActorSystem/actAiQuery.cpp
index 9ba2adae..8cd16602 100644
--- a/src/KingSystem/ActorSystem/actAiQuery.cpp
+++ b/src/KingSystem/ActorSystem/actAiQuery.cpp
@@ -69,6 +69,14 @@ bool Query::getDInstParam(const bool** value, const sead::SafeString& param) con
return ret != nullptr;
}
+bool Query::getAITreeVariable(sead::SafeString** value, const sead::SafeString& param) const {
+ return mActor->getRootAi()->getAITreeVariable(value, param);
+}
+
+bool Query::getAITreeVariable(void** value, const sead::SafeString& param) const {
+ return mActor->getRootAi()->getAITreeVariable(value, param);
+}
+
template class ClassContainer<Query>;
} // namespace ksys::act::ai