aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-memory-efficient/inc/Components.h
diff options
context:
space:
mode:
Diffstat (limited to 'mwe/ecs-memory-efficient/inc/Components.h')
-rw-r--r--mwe/ecs-memory-efficient/inc/Components.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/mwe/ecs-memory-efficient/inc/Components.h b/mwe/ecs-memory-efficient/inc/Components.h
new file mode 100644
index 0000000..98c5fe7
--- /dev/null
+++ b/mwe/ecs-memory-efficient/inc/Components.h
@@ -0,0 +1,33 @@
+#pragma once
+
+#include <string>
+
+class Component {
+public:
+ Component();
+
+ bool mActive;
+};
+
+class Sprite : public Component {
+public:
+ Sprite(std::string path);
+
+ std::string mPath;
+};
+
+class Rigidbody : public Component {
+public:
+ Rigidbody(int mass, int gravityScale, int bodyType);
+
+ int mMass;
+ int mGravityScale;
+ int mBodyType;
+};
+
+class Colider : public Component {
+public:
+ Colider(int size);
+
+ int mSize;
+};