Struct HexEdgeMap<TData>.Enumerator
Value-type enumerator for HexEdgeMap<TData> enabling allocation-free
foreach iteration on the concrete type.
Yields (Coord, Value) tuples for all populated edges.
Inherited Members
Namespace: Scylla.Core.Structures
Assembly: ScyllaCore.dll
Syntax
public struct HexEdgeMap<TData>.Enumerator
Constructors
Enumerator(Enumerator)
Initializes a new enumerator wrapping the specified dictionary enumerator.
Declaration
public Enumerator(Dictionary<HexEdgeCoord, TData>.Enumerator inner)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<HexEdgeCoord, 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 (HexEdgeCoord Coord, TData Value) Current { get; }
Property Value
| Type | Description |
|---|---|
| (HexEdgeCoord Coord, TData Value) |
Methods
MoveNext()
Advances the enumerator to the next stored edge entry.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool | true if the enumerator was advanced; false if past the last entry. |