diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 03:22:03 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 03:22:03 +0200 |
| commit | 518e8cd4cc14bf04dd08f2f8db793430fea175fd (patch) | |
| tree | 3e3f57b5c18bbb335b4840f0512eb57d8bc21222 /src/critter-script.hpp | |
| parent | de33d8773c3357653414143b8a76b08b8aa8d149 (diff) | |
a?
Diffstat (limited to 'src/critter-script.hpp')
| -rw-r--r-- | src/critter-script.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <memory> +#include <cr/Pointer.h> namespace floormat { @@ -21,7 +22,10 @@ struct critter_script : base_script virtual void on_destroy(const std::shared_ptr<critter>& 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<critter_script> make_walk_script(point to, const path_search_result& path, walk_mode mode); }; } // namespace floormat |
