class ECS::RemoveAllOf
- ECS::RemoveAllOf
- ECS::System
- Reference
- Object
Overview
This system deletes all components of specified type during execute.
This is a recommended way of deleting SingleFrame
components,
as library can detect if such system exists and raise exception if it doesn't.
Example:
systems.add(ECS::RemoveAllOf.new(@world, Component1))`
or use a shortcut:
systems.remove_singleframe(Component1)
Defined in:
myecs.crConstructors
-
.new(world, typ : ::ECS::Component.class)
creates a system for a given
world
and components of typetyp
Instance methods inherited from class ECS::System
active : Bool
active,
active=(active : Bool)
active=,
execute
execute,
filter(world : World) : Filter | Nil
filter,
init
init,
process(entity : Entity)
process,
teardown
teardown
Constructor methods inherited from class ECS::System
new(world : ECS::World)
new
Constructor Detail
creates a system for a given world
and components of type typ