Table of Contents

Struct GridChangeStamp

Namespace
GridForge.Grids
Assembly
GridForge.dll

Identifies the committed order and logical cause of a GridForge world mutation.

public readonly struct GridChangeStamp : IEquatable<GridChangeStamp>
Implements
Inherited Members

Constructors

GridChangeStamp(ulong, ulong)

Initializes a change stamp.

public GridChangeStamp(ulong sequence, ulong causeId)

Parameters

sequence ulong
causeId ulong

Fields

CauseId

The world-local logical cause shared by notifications emitted for one mutation.

public readonly ulong CauseId

Field Value

ulong

Sequence

The world-local commit order. Zero is reserved for an invalid or default value.

public readonly ulong Sequence

Field Value

ulong

Properties

IsValid

Whether this value identifies a committed world mutation.

public bool IsValid { get; }

Property Value

bool

Methods

Equals(GridChangeStamp)

public bool Equals(GridChangeStamp other)

Parameters

other GridChangeStamp

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(GridChangeStamp, GridChangeStamp)

public static bool operator ==(GridChangeStamp left, GridChangeStamp right)

Parameters

left GridChangeStamp
right GridChangeStamp

Returns

bool

operator !=(GridChangeStamp, GridChangeStamp)

public static bool operator !=(GridChangeStamp left, GridChangeStamp right)

Parameters

left GridChangeStamp
right GridChangeStamp

Returns

bool