diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-22 18:46:52 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-22 18:46:52 +0100 |
| commit | 51ebc370743b07926ce0a50232a1a65c6b6b27b5 (patch) | |
| tree | 9c38ee65e32c6a760065ef33fe078847d7ea2d48 /floormat | |
| parent | a917bb7c28b383c3c684bf75732188bfff0060bb (diff) | |
finally it works
Diffstat (limited to 'floormat')
| -rw-r--r-- | floormat/main.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/floormat/main.hpp b/floormat/main.hpp index ee6d9e60..b4e4d536 100644 --- a/floormat/main.hpp +++ b/floormat/main.hpp @@ -5,6 +5,7 @@ #include <Magnum/Math/Vector2.h> struct SDL_Window; +namespace Corrade::Containers { template<typename T> class ArrayView; } namespace floormat { @@ -12,6 +13,9 @@ struct fm_settings; struct floormat_app; struct tile_shader; struct world; +struct scenery; +struct anim_atlas; +template<typename Atlas, typename T> struct clickable; struct floormat_main { @@ -35,6 +39,11 @@ struct floormat_main virtual void start_text_input() noexcept = 0; virtual void stop_text_input() noexcept = 0; + virtual ArrayView<const clickable<anim_atlas, scenery>> clickable_scenery() const noexcept = 0; + virtual ArrayView<clickable<anim_atlas, scenery>> clickable_scenery() noexcept = 0; + virtual void set_cursor(std::uint32_t cursor) noexcept = 0; + virtual std::uint32_t cursor() const noexcept = 0; + virtual global_coords pixel_to_tile(Vector2d position) const noexcept = 0; virtual struct world& world() noexcept = 0; |
