ParallelSystem_T_.md

March 19, 2022 · View on GitHub

DefaultEcs

DefaultEcs.System

ParallelSystem Class

Represents a collection of ISystem<T> to update in parallel.

public sealed class ParallelSystem<T> :
DefaultEcs.System.ISystem<T>,
System.IDisposable

Type parameters

T

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

Inheritance System.Object 🡒 ParallelSystem

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

Constructors
ParallelSystem(ISystem<T>, IParallelRunner, ISystem<T>[])Initialises a new instance of the ParallelSystem<T> class.
ParallelSystem(ISystem<T>, IParallelRunner, IEnumerable<ISystem<T>>)Initialises a new instance of the ParallelSystem<T> class.
ParallelSystem(IParallelRunner, ISystem<T>[])Initialises a new instance of the ParallelSystem<T> class.
ParallelSystem(IParallelRunner, IEnumerable<ISystem<T>>)Initialises a new instance of the ParallelSystem<T> class.
Properties
IsEnabledGets or sets whether the current ParallelSystem<T> instance should update or not.
Methods
Dispose()Disposes all the inner ISystem<T> instances.
Update(T)Updates the system once.