Add Signal to ECS

- Add Signal class to ECS used to send signals/events into systems
This commit is contained in:
Thraix
2023-05-22 12:52:15 +02:00
parent 0cd35928a7
commit cd4abe6007
15 changed files with 144 additions and 23 deletions
+2
View File
@@ -3,6 +3,7 @@
#include "copium/ecs/ComponentPool.h"
#include "copium/ecs/Config.h"
#include "copium/ecs/Signal.h"
#include "copium/ecs/SystemPool.h"
#include "copium/util/Common.h"
@@ -33,6 +34,7 @@ namespace Copium
}
void UpdateSystems();
void UpdateSystems(const Signal& signal);
EntityId CreateEntity();
void DestroyEntity(EntityId entity);