Struct PooledEntitySlice.Enumerator
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
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
Reset()
Resets the enumerator to before the first entity.
public void Reset()