IEntityWorld.AddSystem(Action) Method
Definition¶
Namespace: Brine2D.ECS
Adds a system to this world, automatically creating it with dependency injection. Systems that implement IUpdateSystem are added to the update pipeline. Systems that implement IFixedUpdateSystem are added to the fixed update pipeline. Systems that implement IRenderSystem are added to the render pipeline. Systems can implement multiple interfaces.
void AddSystem<T>(System.Action<T>? configure=null)
where T : class, Brine2D.ECS.ISystem;
Type parameters¶
T
The system type to create and add.
Parameters¶
configure System.Action<T>
Optional configuration action for the system.