From 15bbfc100a79a975f6024d6e2e6522c4e91f2cb5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 21 Mar 2023 10:53:32 +0100 Subject: src, draw: work on depth and z offsets --- src/entity.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/entity.hpp') diff --git a/src/entity.hpp b/src/entity.hpp index f2f6c65b..cb5eea3b 100644 --- a/src/entity.hpp +++ b/src/entity.hpp @@ -53,8 +53,9 @@ struct entity virtual ~entity() noexcept; virtual Vector2 ordinal_offset(Vector2b offset) const = 0; + virtual Vector2 depth_offset() const = 0; float ordinal() const; - float ordinal(local_coords xy, Vector2b offset, Vector2b z_offset) const; + float ordinal(local_coords xy, Vector2b offset, Vector2s z_offset) const; struct chunk& chunk() const; size_t index() const; -- cgit v1.2.3