From c8310acf4ea1f11b3e38c7b0fda20dc75ae93df6 Mon Sep 17 00:00:00 2001 From: guillaume abel Date: Sun, 1 Oct 2023 01:43:14 +0200 Subject: [PATCH] ECS: Merge dev --- src/ECS/Systems/Systems.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ECS/Systems/Systems.cpp b/src/ECS/Systems/Systems.cpp index 8209ae10..c9ed4edf 100644 --- a/src/ECS/Systems/Systems.cpp +++ b/src/ECS/Systems/Systems.cpp @@ -5,8 +5,8 @@ ** Systems implementation */ -#include "Systems.hpp" #include +#include "Systems.hpp" #include "CustomTypes.hpp" #include "Raylib.hpp" #include "Registry.hpp" @@ -141,6 +141,8 @@ namespace Systems { .getComponents() .insertBack(collisionRect); Registry::getInstance().getComponents().insertBack({}); + Registry::getInstance().getComponents().insertBack( + {playerHealth}); id = Registry::getInstance().addEntity(); Registry::getInstance().getComponents().insertBack(