Add Signal to ECS
- Add Signal class to ECS used to send signals/events into systems
This commit is contained in:
@@ -32,6 +32,14 @@ namespace Copium
|
||||
}
|
||||
}
|
||||
|
||||
void SystemPool::Update(const Signal& signal)
|
||||
{
|
||||
for (auto& system : systemOrder)
|
||||
{
|
||||
system->Run(signal);
|
||||
}
|
||||
}
|
||||
|
||||
void SystemPool::MoveSystemAfter(const std::type_index& systemId, const std::type_index& afterSystemId)
|
||||
{
|
||||
auto it1 = systems.find(systemId);
|
||||
|
||||
Reference in New Issue
Block a user