aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Utils/Component/Component.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Utils/Component/Component.h')
-rw-r--r--src/libjin/Utils/Component/Component.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/libjin/Utils/Component/Component.h b/src/libjin/Utils/Component/Component.h
new file mode 100644
index 0000000..f63fb59
--- /dev/null
+++ b/src/libjin/Utils/Component/Component.h
@@ -0,0 +1,30 @@
+#ifndef __JIN_TOOLS_COMPONENT_H
+#define __JIN_TOOLS_COMPONENT_H
+#include "../../modules.h"
+#if JIN_MODULES_TOOLS && JIN_TOOLS_COMPONENT
+
+namespace jin
+{
+namespace utils
+{
+
+ class GameObject;
+
+ class Component
+ {
+ public:
+ Component(GameObject* obj)
+ : gameObject(obj)
+ {}
+
+ virtual void update(float dt) = 0;
+
+ private:
+ GameObject* gameObject;
+ };
+
+} // tools
+} // jin
+
+#endif // JIN_MODULES_TOOLS && JIN_TOOLS_COMPONENT
+#endif // __JIN_TOOLS_COMPONENT_H \ No newline at end of file