]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Entity.hpp
make entities removable
[blank.git] / src / world / Entity.hpp
index 05d795f38af6e67e0b0ac2b2633628efc58f2496..48646e80ddd656b353e7f105cab6a6ebc34621eb 100644 (file)
@@ -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;
 
 };