aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/GameObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/GameObject.h')
-rw-r--r--src/crepe/api/GameObject.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crepe/api/GameObject.h b/src/crepe/api/GameObject.h
index 57508c5..862fee8 100644
--- a/src/crepe/api/GameObject.h
+++ b/src/crepe/api/GameObject.h
@@ -3,20 +3,20 @@
#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