diff options
Diffstat (limited to 'source/SceneThings.hpp')
-rw-r--r-- | source/SceneThings.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/SceneThings.hpp b/source/SceneThings.hpp new file mode 100644 index 0000000..0e213a6 --- /dev/null +++ b/source/SceneThings.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "GameObject.hpp" + +#include <vector> + +class BuildingObject : public GameObject { +private: + RcPtr<Mesh> mMesh; + RcPtr<Material> mMaterial; + +public: + using GameObject::GameObject; + + virtual Tags::GameObjectType GetTypeTag() const override { return Tags::GOT_Building; } + + void SetMeshMaterial(Material* material); + virtual const Material* GetMeshMaterial() const override; + void SetMesh(Mesh* mesh); + virtual const Mesh* GetMesh() const override; +}; |