aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Components.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 13:22:10 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 13:22:10 +0200
commit7c9d3452c99fcb89ea6df55755e90f741b23cf10 (patch)
tree93fab445cd4c0ebb392c2f4def2a0bd32d2709d2 /src/crepe/Components.cpp
parent02d658a7ed92bacfdaed587102f0d2e5f6c5dc01 (diff)
copy homemade ECS to crepe + correct code style
Diffstat (limited to 'src/crepe/Components.cpp')
-rw-r--r--src/crepe/Components.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/crepe/Components.cpp b/src/crepe/Components.cpp
new file mode 100644
index 0000000..9760daa
--- /dev/null
+++ b/src/crepe/Components.cpp
@@ -0,0 +1,13 @@
+#include "Components.h"
+#include <iostream>
+
+using namespace crepe;
+
+Component::Component() : mActive(true) {}
+
+Sprite::Sprite(std::string path) : mPath(path) {}
+
+Rigidbody::Rigidbody(int mass, int gravityScale, int bodyType)
+ : mMass(mass), mGravityScale(gravityScale), mBodyType(bodyType) {}
+
+Colider::Colider(int size) : mSize(size) {}