X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;h=c0d9a0bd858159bbd969f225d15abf16f689fa92;hb=4e3d9c23940c4511623b5bf328cbbe42641c4b30;hp=a3811427332628250761bad32210bc64103ea9de;hpb=2ea26d9ca5eaeae65daa0edbbaeada8c1f23670e;p=blank.git diff --git a/src/world/Entity.hpp b/src/world/Entity.hpp index a381142..c0d9a0b 100644 --- a/src/world/Entity.hpp +++ b/src/world/Entity.hpp @@ -5,6 +5,7 @@ #include "../model/CompositeInstance.hpp" #include "../model/geometry.hpp" +#include #include #include #include @@ -23,6 +24,9 @@ public: CompositeInstance &GetModel() noexcept { return model; } const CompositeInstance &GetModel() const noexcept { return model; } + std::uint32_t ID() const noexcept { return id; } + void ID(std::uint32_t i) noexcept { id = i; } + const std::string &Name() const noexcept { return name; } void Name(const std::string &n) { name = n; } @@ -77,6 +81,7 @@ public: private: CompositeInstance model; + std::uint32_t id; std::string name; AABB bounds;