LinkComponentIndex_TLinkComponent_.Values.md

December 3, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.LinkComponentIndex<TLinkComponent>

LinkComponentIndex.Values Property

Returns all indexed link component values of the passedEntity type.
Executes in O(1). Each value in the returned list is unique. See remarks for additional infos.

public System.Collections.Generic.IReadOnlyCollection<Friflo.Engine.ECS.Entity> Values { get; }

Property Value

System.Collections.Generic.IReadOnlyCollection<Entity>

Remarks

  • The returned collection changes when indexed component values are updated, removed or added.
  • To get the entities having a specific component value use this[Entity].