summaryrefslogtreecommitdiffhomepage
path: root/src/entity.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-20 15:27:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-20 15:27:31 +0100
commit5dbee173b961792b42596cb792a50624555cc41b (patch)
tree2e6d82e2c3fefd13584730aecd42a3d3fc14f105 /src/entity.hpp
parent81156d180847bf9ba502a25e546723f234d0e2c9 (diff)
src, senery, serialize: implement z offset
Diffstat (limited to 'src/entity.hpp')
-rw-r--r--src/entity.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entity.hpp b/src/entity.hpp
index 75e06ba8..f2f6c65b 100644
--- a/src/entity.hpp
+++ b/src/entity.hpp
@@ -54,7 +54,7 @@ struct entity
virtual Vector2 ordinal_offset(Vector2b offset) const = 0;
float ordinal() const;
- float ordinal(local_coords xy, Vector2b offset) const;
+ float ordinal(local_coords xy, Vector2b offset, Vector2b z_offset) const;
struct chunk& chunk() const;
size_t index() const;
@@ -75,7 +75,7 @@ struct entity
bool is_dynamic() const;
bool can_rotate(rotation new_r);
bool can_move_to(Vector2i delta);
- [[nodiscard]] size_t move_to(size_t i, Vector2i delta, rotation new_r);
+ size_t move_to(size_t i, Vector2i delta, rotation new_r);
protected:
entity(object_id id, struct chunk& c, const entity_proto& proto);