Skip to content

IEntityWorld.GetRequiredSystem() Method

Definition

Namespace: Brine2D.ECS

Gets a system of the specified type, throwing if it is not found.

C#
T GetRequiredSystem<T>()
    where T : class;

Type parameters

T

Returns

T

Exceptions

System.InvalidOperationException
Thrown when no system of type T exists in this world.