Skip to content

CellImpact ​

Namespace: Hex1b.Tokens

Assembly: Hex1b.dll

Captures a cell that was modified during token application.

csharp
public readonly record struct CellImpact : IEquatable<CellImpact>

Implements ​

Constructors ​

CellImpact(int, int, TerminalCell) ​

Captures a cell that was modified during token application.

Parameters:

  • X (Int32): The column position of the impacted cell (0-based).
  • Y (Int32): The row position of the impacted cell (0-based).
  • Cell (TerminalCell): The cell state after the modification.
csharp
public CellImpact(int X, int Y, TerminalCell Cell)

Properties ​

Cell ​

The cell state after the modification.

Returns: TerminalCell

csharp
public TerminalCell Cell { get; init; }

X ​

The column position of the impacted cell (0-based).

Returns: Int32

csharp
public int X { get; init; }

Y ​

The row position of the impacted cell (0-based).

Returns: Int32

csharp
public int Y { get; init; }

Released under the MIT License.