blob: f8ad0005dcff2f11e02b7f23f57b0d2cde09e5e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "GameObject.hpp"
#include <vector>
class BuildingObject : public GameObject {
private:
RcPtr<GpuMesh> 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(GpuMesh* mesh);
virtual const GpuMesh* GetMesh() const override;
};
|