Signature.md

February 25, 2024 · View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

Signature Class

A Signature specify the IComponent types used to query entity components
using the EntityStore.Query(Signature) methods.

public static class Signature

Inheritance System.Object 🡒 Signature

Remarks

In contrast to ComponentTypes the order of IComponent's stored in a signature is relevant for queries.
The maximum number of IComponent's stored in a signature is currently 5.

Methods
Get<T1,T2,T3,T4,T5>()Returns a query Signature<T1,T2,T3,T4,T5> containing the specified component types.
Get<T1,T2,T3,T4>()Returns a query Signature<T1,T2,T3,T4> containing the specified component types.
Get<T1,T2,T3>()Returns a query Signature<T1,T2,T3> containing the specified component types.
Get<T1,T2>()Returns a query Signature<T1,T2> containing the specified component types.
Get<T1>()Returns a query Signature<T1> containing the specified component type.