diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-16 09:07:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 23:23:11 +0100 |
commit | a1df7c84a5c49adb3b8e8cd3796fd53a02684dd5 (patch) | |
tree | 0e29449992a851fdb4c16628db8f1ea81c078308 /src/entity.hpp | |
parent | fd9298ef43136fa89dab034096690a08027ebf44 (diff) |
a
Diffstat (limited to 'src/entity.hpp')
-rw-r--r-- | src/entity.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entity.hpp b/src/entity.hpp index a0a6ed53..522ef8b6 100644 --- a/src/entity.hpp +++ b/src/entity.hpp @@ -51,8 +51,9 @@ struct entity virtual ~entity() noexcept; + static Vector2b ordinal_offset_for_type(entity_type type, Vector2b offset); std::int32_t ordinal() const; - static std::int32_t ordinal(local_coords xy, Vector2b offset); + static std::int32_t ordinal(local_coords xy, Vector2b offset, entity_type type); struct chunk& chunk() const; It iter() const; |