summaryrefslogtreecommitdiff
path: root/engine/xe_game_object.hpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-24 21:16:13 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-24 21:16:13 -0400
commitf81d611f0e298baffad68d83f208e2306fe38739 (patch)
treef42732149fe2bfb7d28e26ed36067d24fb21b30c /engine/xe_game_object.hpp
parentdelete old files (diff)
downloadminecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.tar.gz
minecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.tar.bz2
minecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.zip
remove Xe From engine class names
Diffstat (limited to 'engine/xe_game_object.hpp')
-rw-r--r--engine/xe_game_object.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engine/xe_game_object.hpp b/engine/xe_game_object.hpp
index 7adbbed..30625f1 100644
--- a/engine/xe_game_object.hpp
+++ b/engine/xe_game_object.hpp
@@ -21,28 +21,28 @@ struct TransformComponent {
};
-class XeGameObject {
+class GameObject {
public:
using id_t = unsigned int;
- static XeGameObject createGameObject() {
+ static GameObject createGameObject() {
static id_t currentId = 0;
- return XeGameObject(currentId++);
+ return GameObject(currentId++);
}
- XeGameObject(const XeGameObject &) = delete;
- XeGameObject &operator=(const XeGameObject &) = delete;
- XeGameObject(XeGameObject&&) = default;
- XeGameObject &operator=(XeGameObject &&) = default;
+ GameObject(const GameObject &) = delete;
+ GameObject &operator=(const GameObject &) = delete;
+ GameObject(GameObject&&) = default;
+ GameObject &operator=(GameObject &&) = default;
id_t getId() { return id; }
- std::shared_ptr<XeModel> model{};
+ std::shared_ptr<Model> model{};
glm::vec3 color{};
TransformComponent transform;
private:
- XeGameObject(id_t objId) : id{objId} {}
+ GameObject(id_t objId) : id{objId} {}
id_t id;
};