Struct HexCornerMap<TData>.Enumerator
Value-type enumerator for HexCornerMap<TData> enabling allocation-free
foreach iteration on the concrete type.
Yields (Coord, Value) tuples for all populated corners.
Inherited Members
Namespace: Scylla.Core.Structures
Assembly: ScyllaCore.dll
Syntax
public struct HexCornerMap<TData>.Enumerator
Constructors
Enumerator(Enumerator)
Initializes a new enumerator wrapping the specified dictionary enumerator.
Declaration
public Enumerator(Dictionary<HexCornerCoord, TData>.Enumerator inner)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<HexCornerCoord, TData>.Enumerator | inner | The dictionary enumerator to wrap. |
Properties
Current
Gets the current (Coord, Value) pair. Only valid after a successful call to MoveNext().
Declaration
public readonly (HexCornerCoord Coord, TData Value) Current { get; }
Property Value
| Type | Description |
|---|---|
| (HexCornerCoord Coord, TData Value) |
Methods
MoveNext()
Advances the enumerator to the next stored corner entry.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool | true if the enumerator was advanced; false if past the last entry. |