Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.94 KB

ActionSystem_T_.md

File metadata and controls

36 lines (25 loc) · 1.94 KB

ActionSystem Class

Represents a class to set up easily a custom action as a system update.

public sealed class ActionSystem<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 🡒 ActionSystem

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

Constructors
ActionSystem(Action<T>) Initialises a new instance of the ActionSystem<T> class with the given System.Action<>.
Properties
IsEnabled Gets or sets whether the current ISystem<T> instance should update or not.
Methods
Dispose() Does nothing.
Update(T) Updates the system once.
Does nothing if IsEnabled is false.