summaryrefslogtreecommitdiffhomepage
path: root/src/object.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 06:22:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 06:22:49 +0200
commitad052388e4ec5d55adc3eafb1d4974e67341ab67 (patch)
treee3059c77130cf259c82683b05a3fcf24fe9a4953 /src/object.cpp
parentceec1ce9106f21ff1fd42c3b709937079480911b (diff)
b
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 47383bf1..03491de3 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -348,6 +348,7 @@ void object::set_bbox(Vector2b offset_, Vector2b bb_offset_, Vector2ub bb_size_,
bool object::can_activate(size_t) const { return false; }
bool object::activate(size_t) { return false; }
class chunk& object::chunk() const { return *c; }
+class world& object::world() const { return c->world(); }
bool object::is_virtual() const { return false; }
point object::position() const { return {coord, offset}; }
object_type object::type_of() const noexcept { return type(); }