Skip to content

ChangedCell

Namespace: Hex1b.Surfaces

Assembly: Hex1b.dll

Represents a cell that has changed between two surface states.

csharp
public readonly record struct ChangedCell : IEquatable<ChangedCell>

Implements

Constructors

ChangedCell(int, int, SurfaceCell)

Represents a cell that has changed between two surface states.

Parameters:

  • X (Int32): The column position (0-based).
  • Y (Int32): The row position (0-based).
  • Cell (SurfaceCell): The new cell value at this position.
csharp
public ChangedCell(int X, int Y, SurfaceCell Cell)

Properties

Cell

The new cell value at this position.

Returns: SurfaceCell

csharp
public SurfaceCell Cell { get; init; }

X

The column position (0-based).

Returns: Int32

csharp
public int X { get; init; }

Y

The row position (0-based).

Returns: Int32

csharp
public int Y { get; init; }

Released under the MIT License.