IReactiveSystem
Namespace: Bang.Systems
Assembly: Bang.dll
public abstract IReactiveSystem : ISystem
A reactive system that reacts to changes of certain components.
Implements: ISystem
⭐ Methods
OnAdded(World, ImmutableArray)
public abstract void OnAdded(World world, ImmutableArray<T> entities)
This is called at the end of the frame for all entities that were added one of the target. components. This is not called if the entity died.
Parameters
world
World
entities
ImmutableArray<T>
OnModified(World, ImmutableArray)
public abstract void OnModified(World world, ImmutableArray<T> entities)
This is called at the end of the frame for all entities that modified one of the target. components. This is not called if the entity died.
Parameters
world
World
entities
ImmutableArray<T>
OnRemoved(World, ImmutableArray)
public abstract void OnRemoved(World world, ImmutableArray<T> entities)
This is called at the end of the frame for all entities that removed one of the target. components.
Parameters
world
World
entities
ImmutableArray<T>
OnActivated(World, ImmutableArray)
public virtual void OnActivated(World world, ImmutableArray<T> entities)
[Optional] This is called when an entity gets enabled.
Parameters
world
World
entities
ImmutableArray<T>
OnDeactivated(World, ImmutableArray)
public virtual void OnDeactivated(World world, ImmutableArray<T> entities)
[Optional] This is called when an entity gets disabled. Called if an entity was previously disabled.
Parameters
world
World
entities
ImmutableArray<T>
⚡