Table of Contents

Struct EcsView<TArchetype>.EntityIdEnumerator

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Enumerator that wraps HashMap<long>.Enumerator and yields EntityId. Ref struct (HashMap enumerator is ref struct).

public ref struct EcsView<TArchetype>.EntityIdEnumerator
Inherited Members

Properties

Current

The EntityId at the current position.

public EntityId Current { get; }

Property Value

EntityId

Methods

GetEnumerator()

Returns this enumerator, enabling foreach directly over it.

public EcsView<TArchetype>.EntityIdEnumerator GetEnumerator()

Returns

EcsView<TArchetype>.EntityIdEnumerator

MoveNext()

Advances to the next entity; returns false when the view is exhausted.

public bool MoveNext()

Returns

bool