]> git.localhorst.tv Git - blank.git/blobdiff - src/model/Model.hpp
use entity's eyes to aim
[blank.git] / src / model / Model.hpp
index c46caf442740cb7efec78a4aad27087339faf705..55a9734381a7e68ad453f94f1e51ce489fdce748 100644 (file)
@@ -31,6 +31,10 @@ public:
        Part &GetPart(std::size_t i) noexcept { return *part[i]; }
        const Part &GetPart(std::size_t i) const noexcept { return *part[i]; }
 
+       void SetEyes(std::uint16_t id) { eyes_id = id; }
+
+       const Part &GetEyesPart() const noexcept { return GetPart(eyes_id); }
+
        void Enumerate();
        void Instantiate(Instance &) const;
 
@@ -38,6 +42,7 @@ private:
        std::uint32_t id;
        Part root;
        std::vector<Part *> part;
+       std::uint16_t eyes_id;
 
 };