------------------------ EcsController::Process Update all systems according to their implicit schedule
| 435 | // Update all systems according to their implicit schedule |
| 436 | // |
| 437 | void EcsController::Process() |
| 438 | { |
| 439 | for (RegisteredSystem* const sys : m_Schedule) |
| 440 | { |
| 441 | sys->system->SetCommandController(this); |
| 442 | |
| 443 | for (RegisteredSystem::ArchetypeLayer& layer : sys->matchingArchetypes) |
| 444 | { |
| 445 | for (Archetype* const arch : layer.archetypes) |
| 446 | { |
| 447 | if (arch->GetSize() > 0u) |
| 448 | { |
| 449 | sys->system->RootProcess(this, arch, 0u, arch->GetSize()); |
| 450 | } |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | sys->system->MergeCommands(); |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | |
| 459 | // accessors |
nothing calls this directly
no test coverage detected