X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;h=48646e80ddd656b353e7f105cab6a6ebc34621eb;hb=12744a2f68b3c9496076d6d7b6fb3581ff78472a;hp=05d795f38af6e67e0b0ac2b2633628efc58f2496;hpb=a1f911f8257f614f874c201fede5d5206f5b7e80;p=blank.git diff --git a/src/world/Entity.hpp b/src/world/Entity.hpp index 05d795f..48646e8 100644 --- a/src/world/Entity.hpp +++ b/src/world/Entity.hpp @@ -57,6 +57,9 @@ public: glm::mat4 Transform(const Chunk::Pos &chunk_offset) const noexcept; Ray Aim(const Chunk::Pos &chunk_offset) const noexcept; + void Remove() noexcept { remove = true; } + bool CanRemove() const noexcept { return remove; } + void Update(int dt) noexcept; void Draw() noexcept; @@ -77,6 +80,7 @@ private: glm::mat4 rotation; bool world_collision; + bool remove; };