TraversedCell
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Represents a single cell that was traversed during pattern matching.
csharp
public readonly record struct TraversedCell : IEquatable<TraversedCell>Implements
Constructors
TraversedCell(int, int, TerminalCell, IReadOnlySet<string>?)
Represents a single cell that was traversed during pattern matching.
Parameters:
X(Int32): X coordinate of the cell.Y(Int32): Y coordinate of the cell.Cell(TerminalCell): The terminal cell at this position.CaptureNames(IReadOnlySet<String>): Names of captures this cell belongs to, or null if none.
csharp
public TraversedCell(int X, int Y, TerminalCell Cell, IReadOnlySet<string>? CaptureNames)Properties
CaptureNames
Names of captures this cell belongs to, or null if none.
Returns: IReadOnlySet<String>
csharp
public IReadOnlySet<string>? CaptureNames { get; init; }Cell
The terminal cell at this position.
Returns: TerminalCell
csharp
public TerminalCell Cell { get; init; }X
X coordinate of the cell.
Returns: Int32
csharp
public int X { get; init; }Y
Y coordinate of the cell.
Returns: Int32
csharp
public int Y { get; init; }