LinkComponentIndex_TLinkComponent_.md
December 3, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
LinkComponentIndex Struct
The index for ILinkComponent struct's to search entities with a specific entity in O(1).
public readonly struct LinkComponentIndex<TLinkComponent>
where TLinkComponent : struct, Friflo.Engine.ECS.ILinkComponent, System.ValueType, System.ValueType
Type parameters
TLinkComponent
| Properties | |
|---|---|
| this[Entity] | Return the entities having a link component with the passed component value. Executes in O(1) with default index. |
| Values | 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. |
| Methods | |
|---|---|
| ToString() |