EasyEcs
API reference

RelationIndex<T>.Sources

Enumerates the entities linking to one target (foreach), once per link.

public ref struct Sources

Nested in RelationIndex.

Enumerates the entities linking to one target (foreach), once per link.

Properties

Current

public readonly Entity Current { get; }

The current linking entity.

Methods

GetEnumerator

public readonly RelationIndex<T>.Sources GetEnumerator();

The enumerator itself (foreach support, no allocation).

MoveNext

public bool MoveNext();

Move to the next link. O(1) per link.

Edit on GitHub

Last updated on

How is this guide?

On this page