aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-19 20:51:51 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-19 20:51:51 +0100
commitd81ecc242ff88ffd49e0b5296dfb23ab54a0cd78 (patch)
treeed1362607b8f068f0177de87bf4d55b29d4c89cf /src/crepe/system
parent0f9f379a4dec7ad9d1dce30af5e2259931692c5f (diff)
merge with master
Diffstat (limited to 'src/crepe/system')
-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:
/**