aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crepe/system/CollisionSystem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crepe/system/CollisionSystem.h b/src/crepe/system/CollisionSystem.h
index f3242b1..0518b34 100644
--- a/src/crepe/system/CollisionSystem.h
+++ b/src/crepe/system/CollisionSystem.h
@@ -10,12 +10,15 @@
#include "api/Vector2.h"
#include "Collider.h"
+#include "System.h"
namespace crepe {
//! A system responsible for detecting and handling collisions between colliders.
-class CollisionSystem {
+class CollisionSystem : public System {
+public:
+ using System::System;
private:
//! A variant type that can hold either a BoxCollider or a CircleCollider.
@@ -70,7 +73,7 @@ public:
CollisionSystem();
//! Updates the collision system by checking for collisions between colliders and handling them.
- void update();
+ void update() override;
private:
/**