diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-03 21:41:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-04 00:16:57 +0200 |
commit | 9bb683fe25e6c7cdaa50276433628dc0e1073f9f (patch) | |
tree | 639125819afef89f3c4d72bd3bb5f174d544828a /floormat | |
parent | de99a85a63aa5cb85a4f5e67f8d5b1e7f3671c47 (diff) |
editor: move duplicated code to pixel_to_point()
Diffstat (limited to 'floormat')
-rw-r--r-- | floormat/main.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/floormat/main.hpp b/floormat/main.hpp index 2ed8518f..8239a05a 100644 --- a/floormat/main.hpp +++ b/floormat/main.hpp @@ -24,6 +24,7 @@ struct anim_mesh; struct texture_unit_cache; class path_search; class astar; +struct point; struct floormat_main { @@ -68,8 +69,10 @@ struct floormat_main virtual void set_cursor(uint32_t cursor) noexcept = 0; virtual uint32_t cursor() const noexcept = 0; - virtual global_coords pixel_to_tile(Vector2d position) const noexcept = 0; + virtual global_coords pixel_to_tile(Vector2d position, int8_t z_level = 0) const noexcept = 0; virtual Vector2d pixel_to_tile_(Vector2d position) const noexcept = 0; + virtual point pixel_to_point(Vector2d position, int8_t z_level = 0) const noexcept = 0; + virtual draw_bounds get_draw_bounds() const noexcept = 0; [[nodiscard]] static bool check_chunk_visible(const Vector2d& offset, const Vector2i& size) noexcept; virtual struct meshes meshes() noexcept = 0; |