Table of Contents

Struct EcsQuery<TArchetype>.EcsQueryEnumerator

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Iterates pre-collected query results, yielding read-only EntityRefs; their component reads return copies. To write, open the entity with OpenMut(EntityId) or TryOpenMut(EntityId, out EntityRefMut).

public ref struct EcsQuery<TArchetype>.EcsQueryEnumerator
Inherited Members

Properties

Current

The EntityRef resolved at the current position.

public EntityRef Current { get; }

Property Value

EntityRef

Methods

Dispose()

No-op; the enumerator holds no resources requiring release.

public void Dispose()

MoveNext()

Advances to the next matching entity, applying the WHERE post-filter; returns false at the end.

public bool MoveNext()

Returns

bool