IRelation_TKey_.md

November 22, 2024 · View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

IRelation Interface

A relation enables adding multiple components of the same type to an entity.
The components added to a single entity build a set of components using the relation TKey as unique identifier.

public interface IRelation<out TKey> :
Friflo.Engine.ECS.IRelation

Type parameters

TKey

The key defining a unique relation.

Derived
ILinkRelation

Implements IRelation

Remarks

A relation enables:

Methods
GetRelationKey()Returns the key of a unique relation.