Relations_TRelation_.md

November 22, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

Relations Struct

Contains the relations of a specific entity returned by GetRelations<TRelation>(this Entity).

public readonly struct Relations<TRelation> :
System.Collections.Generic.IEnumerable<TRelation>,
System.Collections.IEnumerable
    where TRelation : struct, System.ValueType, System.ValueType

Type parameters

TRelation

Implements System.Collections.Generic.IEnumerable<TRelation>, System.Collections.IEnumerable

Fields
LengthReturn the number of relations.
Executes in O(1).
Properties
this[int]Return the relation at the given index.
Executes in O(1).
Methods
Debug()Returns a string containing the relation keys.
E.g "{ 1, 3, 7 }"
GetEnumerator()
ToString()
Explicit Interface Implementations
System.Collections.Generic.IEnumerable<TRelation>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()