diff options
Diffstat (limited to 'src/Game/AI/Query/queryCheckDistanceForWarp.cpp')
| -rw-r--r-- | src/Game/AI/Query/queryCheckDistanceForWarp.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Game/AI/Query/queryCheckDistanceForWarp.cpp b/src/Game/AI/Query/queryCheckDistanceForWarp.cpp new file mode 100644 index 00000000..c8716246 --- /dev/null +++ b/src/Game/AI/Query/queryCheckDistanceForWarp.cpp @@ -0,0 +1,25 @@ +#include "Game/AI/Query/queryCheckDistanceForWarp.h" +#include <evfl/query.h> + +namespace uking::query { + +CheckDistanceForWarp::CheckDistanceForWarp(const InitArg& arg) : ksys::act::ai::Query(arg) {} + +CheckDistanceForWarp::~CheckDistanceForWarp() = default; + +// FIXME: implement +int CheckDistanceForWarp::doQuery() { + return -1; +} + +void CheckDistanceForWarp::loadParams(const evfl::QueryArg& arg) { + loadString(arg.param_accessor, "WarpDestMapName"); + loadString(arg.param_accessor, "WarpDestPosName"); +} + +void CheckDistanceForWarp::loadParams() { + getDynamicParam(&mWarpDestMapName, "WarpDestMapName"); + getDynamicParam(&mWarpDestPosName, "WarpDestPosName"); +} + +} // namespace uking::query |
