ActionSystem_T_.md

March 19, 2022 · View on GitHub

DefaultEcs

DefaultEcs.System

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
IsEnabledGets 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.