From 518e8cd4cc14bf04dd08f2f8db793430fea175fd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 6 May 2024 03:22:03 +0200 Subject: a? --- src/critter-script.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/critter-script.hpp') diff --git a/src/critter-script.hpp b/src/critter-script.hpp index dbfe9dd8..630baa4b 100644 --- a/src/critter-script.hpp +++ b/src/critter-script.hpp @@ -1,6 +1,7 @@ #pragma once #include "script.hpp" #include +#include namespace floormat { @@ -21,7 +22,10 @@ struct critter_script : base_script virtual void on_destroy(const std::shared_ptr& c, script_destroy_reason reason) = 0; virtual void delete_self() = 0; - [[nodiscard]] static critter_script* make_walk_script(point to, path_search_result path); + // todo! move to src/scripts dir + + enum class walk_mode : uint8_t { none, line, path, }; + static Pointer make_walk_script(point to, const path_search_result& path, walk_mode mode); }; } // namespace floormat -- cgit v1.2.3