class

System

Module
ECS
Header
#include "ECS/System.h"
Namespace
Mowo

Constructors

SignatureNameDescription
virtual ~System() = default~System

Public functions

ReturnsNameDescription
ComponentMaskMakeComponentMask
SystemPhaseGetPhase
boolDeclaresComponentAccessDeclaring reads and writes lets ComputeParallelBatches run this system concurrently with non-conflicting systems in the same phase.
ComponentMaskGetReadMask
ComponentMaskGetWriteMask
uint32_tGetResourceReadMask
uint32_tGetResourceWriteMask
const char*GetDebugNameNames the profiler scope World::Update wraps around this system's Update, so all registered systems show up in a capture without each one carrying its own scope.
voidInitialize
voidShutdown
voidUpdate
boolSystemsConflictTwo systems conflict — must stay ordered and may not run together — when either fails to declare its access, or their declared accesses race: write/write on a shared component, or one's write touching the other's read.
std::vector<std::vector<size_t>>ComputeParallelBatchesGroup systems (already filtered to one phase, in registration order) into ordered batches.
World*GetWorld

Function details

~System

C++
virtual ~System() = default

MakeComponentMask

C++
template<typename... Ts> static ComponentMask MakeComponentMask()

GetPhase

C++
virtual SystemPhase GetPhase() const

DeclaresComponentAccess

C++
virtual bool DeclaresComponentAccess() const

Declaring reads and writes lets ComputeParallelBatches run this system concurrently with non-conflicting systems in the same phase. Declaring nothing means conflicting with everything, i.e. serial in registration order — so this is purely opt-in.

GetReadMask

C++
virtual ComponentMask GetReadMask() const

GetWriteMask

C++
virtual ComponentMask GetWriteMask() const

GetResourceReadMask

C++
virtual uint32_t GetResourceReadMask() const

GetResourceWriteMask

C++
virtual uint32_t GetResourceWriteMask() const

GetDebugName

C++
virtual const char* GetDebugName() const

Names the profiler scope World::Update wraps around this system's Update, so all registered systems show up in a capture without each one carrying its own scope. The default resolves to the concrete type (MSVC renders it "class Mowo::FCoverSystem"); the returned pointer must outlive the frame, so overrides return string literals.

Initialize

C++
virtual void Initialize(World* world)

Shutdown

C++
virtual void Shutdown()

Update

C++
virtual void Update(float deltaTime) = 0

SystemsConflict

C++
static bool SystemsConflict(const System& a, const System& b)

Two systems conflict — must stay ordered and may not run together — when either fails to declare its access, or their declared accesses race: write/write on a shared component, or one's write touching the other's read. Read/read alone never conflicts.

ComputeParallelBatches

C++
static std::vector<std::vector<size_t>> ComputeParallelBatches( const std::vector<System*>& systems)

Group systems (already filtered to one phase, in registration order) into ordered batches. Every system within a batch is pairwise conflict-free, so a batch can run concurrently; batches run in order. A system never lands in an earlier batch than an earlier-registered system it conflicts with, so dependent ordering is preserved. Levels: level(i) = 1 + max level among earlier systems that conflict with i; two systems at the same level are provably non-conflicting.

GetWorld

C++
World* GetWorld() const
Generated from ECS/System.h via ecs.json · Nov 4, 2026Version 1.0.0