From 3fdc6eb4f2cbeffce9b250beec4d3a2d52a3f534 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Wed, 6 Apr 2022 20:52:51 -0700 Subject: Work on moving infrastruture to this project --- source/SceneThings.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 source/SceneThings.hpp (limited to 'source/SceneThings.hpp') 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 + +class BuildingObject : public GameObject { +private: + RcPtr mMesh; + RcPtr 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; +}; -- cgit v1.2.3-70-g09d2