aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/GameObject.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-05 13:01:23 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-05 13:01:23 +0100
commit6aa2084b52e632447267bdff5342aa7af224f1d4 (patch)
tree7c12d709e2fe02f832b756d1446b7416cd39fc15 /src/crepe/api/GameObject.h
parentdb280c2787cfc77641082f94d40d9231fbc62d56 (diff)
Modified GameObject according to class diagram (design document)
Diffstat (limited to 'src/crepe/api/GameObject.h')
-rw-r--r--src/crepe/api/GameObject.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/crepe/api/GameObject.h b/src/crepe/api/GameObject.h
index 57508c5..fd513ec 100644
--- a/src/crepe/api/GameObject.h
+++ b/src/crepe/api/GameObject.h
@@ -3,20 +3,19 @@
#include <cstdint>
#include <string>
+#include "api/Point.h"
+
namespace crepe::api {
class GameObject {
public:
- GameObject(uint32_t id, std::string name, std::string tag, int layer);
+ GameObject(uint32_t id, std::string name, std::string tag, Point position, double rotation, double scale);
+ void set_parent(GameObject & parent);
template <typename T, typename... Args>
T & add_component(Args &&... args);
uint32_t id;
- std::string name;
- std::string tag;
- bool active;
- int layer;
};
} // namespace crepe::api