EntityExtensions.

Get<TComponent1, TComponent2, TComponent3, TComponent4>(Entity) Method

Summary

Gets the four specified components.
Namespace
StrideToolkit.Engine
Containing Type
EntityExtensions

Syntax

public static (TComponent1, TComponent2, TComponent3, TComponent4) Get<TComponent1, TComponent2, TComponent3, TComponent4>(this Entity entity) 
    where TComponent1 : EntityComponent where TComponent2 : EntityComponent where TComponent3 : EntityComponent where TComponent4 : EntityComponent

Type Parameters

Name Description
TComponent1 The type of the first component the method returns.
TComponent2 The type of the second component the method returns.
TComponent3 The type of the third component the method returns.
TComponent4 The type of the fourth component the method returns.

Parameters

Name Type Description
entity Entity The Entity to get the components from.

Return Value

Type Description
(TComponent1, TComponent2, TComponent3, TComponent4) The tuple of the four components or null if component does not exist.