aboutsummaryrefslogtreecommitdiff
path: root/source/SceneThings.hpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-06 20:52:51 -0700
committerhnOsmium0001 <[email protected]>2022-04-06 20:52:51 -0700
commit3fdc6eb4f2cbeffce9b250beec4d3a2d52a3f534 (patch)
tree05991741844aa2814b3ac71e2c843ebe07244845 /source/SceneThings.hpp
parentebd42760caaec8330a3c028f31adc7bc0b339d16 (diff)
Work on moving infrastruture to this project
Diffstat (limited to 'source/SceneThings.hpp')
-rw-r--r--source/SceneThings.hpp21
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;
+};