Table of Contents

Struct PooledEntitySlice.Enumerator

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Stack-allocated enumerator over the entity array slice.

public struct PooledEntitySlice.Enumerator : IEnumerator<EntityId>, IEnumerator, IDisposable
Implements
Inherited Members

Properties

Current

Entity at the current position. Valid only after a MoveNext() that returned true.

public EntityId Current { get; }

Property Value

EntityId

Methods

Dispose()

No-op — the enumerator holds no unmanaged resources and does not own the backing array.

public void Dispose()

MoveNext()

Advances to the next entity in the slice. Returns false once the slice is exhausted.

public bool MoveNext()

Returns

bool

Reset()

Resets the enumerator to before the first entity.

public void Reset()