MCPcopy Create free account
hub / github.com/Illation/ETEngine / Process

Method Process

Engine/source/EtFramework/ECS/EcsController.cpp:437–456  ·  view source on GitHub ↗

------------------------ EcsController::Process Update all systems according to their implicit schedule

Source from the content-addressed store, hash-verified

435// Update all systems according to their implicit schedule
436//
437void 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

Callers

nothing calls this directly

Calls 3

SetCommandControllerMethod · 0.80
MergeCommandsMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected