Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 6.81 KB

AEntitySetSystem_T_.md

File metadata and controls

49 lines (38 loc) · 6.81 KB

AEntitySetSystem Class

Represents a base class to process updates on a given EntitySet instance.
Only Get<T>() operations on already present component type are safe.
Any other operation maybe change the inner EntitySet and should be done either by using setting "useBuffer" of the available constructors to true or using an EntityCommandRecorder.

public abstract class AEntitySetSystem<T> :
DefaultEcs.System.ISystem<T>,
System.IDisposable

Type parameters

T

The type of the object used as state to update the system.

Inheritance System.Object 🡒 AEntitySetSystem

Implements DefaultEcs.System.ISystem<T>, System.IDisposable

Constructors
AEntitySetSystem(EntitySet, bool) Initialise a new instance of the AEntitySetSystem<T> class with the given EntitySet.
AEntitySetSystem(EntitySet, IParallelRunner, int) Initialise a new instance of the AEntitySetSystem<T> class with the given EntitySet and IParallelRunner.
AEntitySetSystem(World, bool) Initialise a new instance of the AEntitySetSystem<T> class with the given World.
To create the inner EntitySet, WithAttribute and WithoutAttribute attributes will be used.
AEntitySetSystem(World, IParallelRunner, int) Initialise a new instance of the AEntitySetSystem<T> class with the given World.
To create the inner EntitySet, WithAttribute and WithoutAttribute attributes will be used.
AEntitySetSystem(World, Func<object,World,EntitySet>, bool) Initialise a new instance of the AEntitySetSystem<T> class with the given World.
To create the inner EntitySet, WithAttribute and WithoutAttribute attributes will be used.
AEntitySetSystem(World, Func<object,World,EntitySet>, IParallelRunner, int) Initialise a new instance of the AEntitySetSystem<T> class with the given World and factory.
The current instance will be passed as the first parameter of the factory.
Properties
IsEnabled Gets or sets whether the current AEntitySetSystem<T> instance should update or not.
Set Gets the EntitySet instance on which this system operates.
World Gets the World instance on which this system operates.
Methods
Dispose() Disposes of the inner EntitySet instance.
PostUpdate(T) Performs a post-update treatment.
PreUpdate(T) Performs a pre-update treatment.
Update(T) Updates the system once.
Does nothing if IsEnabled is false or if the inner EntitySet is empty.
Update(T, Entity) Update the given Entity instance once.
Update(T, ReadOnlySpan<Entity>) Update the given Entity instances once.