EasyEcs
API reference

World.EntityEnumerator

Enumerates alive entities in id order; ids beyond the capacity captured at start are not visited.

public struct EntityEnumerator

Nested in World.

Enumerates alive entities in id order; ids beyond the capacity captured at start are not visited.

Properties

Current

public readonly Entity Current { get; }

The current living entity.

Methods

GetEnumerator

public readonly World.EntityEnumerator GetEnumerator();

The enumerator itself (foreach support, no allocation).

MoveNext

public bool MoveNext();

Move to the next living entity (ids in ascending order). O(1) amortized per id.

Edit on GitHub

Last updated on

How is this guide?

On this page