Struct SquareCornerMap<TData>.Enumerator
Value-type enumerator for SquareCornerMap<TData> that enables allocation-free
foreach iteration when used on the concrete type.
Inherited Members
Namespace: Scylla.Core.Structures
Assembly: ScyllaCore.dll
Syntax
public struct SquareCornerMap<TData>.Enumerator
Remarks
Each iteration step yields a (Coord, Value) tuple via Current.
Do not modify the map while iterating; doing so produces undefined behaviour.
Constructors
Enumerator(Enumerator)
Initializes a new SquareCornerMap<TData>.Enumerator wrapping the given dictionary enumerator.
Declaration
public Enumerator(Dictionary<SquareCornerCoord, TData>.Enumerator inner)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<SquareCornerCoord, TData>.Enumerator | inner | The dictionary enumerator to wrap. |
Properties
Current
Gets the corner coordinate and its associated data at the current iteration position.
Declaration
public readonly (SquareCornerCoord Coord, TData Value) Current { get; }
Property Value
| Type | Description |
|---|---|
| (SquareCornerCoord Coord, TData Value) | A tuple |
Methods
MoveNext()
Advances the enumerator to the next entry in the map.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool |
|