class ECS::Systems
- ECS::Systems
- ECS::System
- Reference
- Object
Overview
Group of systems to process EcsWorld
instance.
You can add Systems to Systems to create hierarchy.
You can either create Systems directly or (preferred way) inherit from ECS::Systems
to add systems in initialize
Defined in:
myecs.crConstructors
-
.new(world : World)
creates empty
Systems
group.
Instance Method Summary
-
#add(sys : System)
Adds system to a group
-
#add(sys : System.class)
Creates system of given class and adds it to a group
-
#children : Array(ECS::System)
List of systems in a group.
-
#execute
calls
preprocess
,process
and#execute
for all active children -
#init
calls
#init
for all children systems also initializes filters for children systems -
#remove_singleframe(typ)
Adds
RemoveAllOf
instance for specified component type -
#teardown
calls
#teardown
for all children systems
Instance methods inherited from class ECS::System
active : Bool
active,
active=(active : Bool)
active=,
execute
execute,
filter(world : World) : Filter | Nil
filter,
init
init,
preprocess
preprocess,
process(entity : Entity)
process,
teardown
teardown
Constructor methods inherited from class ECS::System
new(world : ECS::World)
new
Constructor Detail
creates empty Systems
group.
This method should be overriden in children to automatically add systems.
Instance Method Detail
List of systems in a group. This list must not be modified directly.
Instead, use #add
to add systems to it and ECS::System#active
to disable systems