Table of Contents

Struct GridDiagnosticChange

Namespace
GridForge.Diagnostics
Assembly
GridForge.dll

Immutable descriptor for one diagnostic dirty change captured by a session.

public readonly struct GridDiagnosticChange : IEquatable<GridDiagnosticChange>, IComparable<GridDiagnosticChange>
Implements
Inherited Members

Constructors

GridDiagnosticChange(GridDiagnosticChangeKind, long, ushort, long, WorldVoxelIndex, VoxelIndex, Vector3d, Vector3d)

Initializes a diagnostic dirty-change descriptor.

public GridDiagnosticChange(GridDiagnosticChangeKind kind, long worldSpawnToken, ushort gridIndex, long gridSpawnToken, WorldVoxelIndex worldIndex, VoxelIndex voxelIndex, Vector3d boundsMin, Vector3d boundsMax)

Parameters

kind GridDiagnosticChangeKind
worldSpawnToken long
gridIndex ushort
gridSpawnToken long
worldIndex WorldVoxelIndex
voxelIndex VoxelIndex
boundsMin Vector3d
boundsMax Vector3d

Fields

BoundsMax

Maximum world-space bounds affected by grid or range-scoped changes.

public readonly Vector3d BoundsMax

Field Value

Vector3d

BoundsMin

Minimum world-space bounds affected by grid or range-scoped changes.

public readonly Vector3d BoundsMin

Field Value

Vector3d

GridIndex

World-local grid slot affected by the change, or MaxValue for world-scoped changes.

public readonly ushort GridIndex

Field Value

ushort

GridSpawnToken

Runtime token of the grid instance affected by the change.

public readonly long GridSpawnToken

Field Value

long

Kind

Kind flags coalesced for this dirty change.

public readonly GridDiagnosticChangeKind Kind

Field Value

GridDiagnosticChangeKind

VoxelIndex

Topology-local voxel index for cell or sparse address-range changes.

public readonly VoxelIndex VoxelIndex

Field Value

VoxelIndex

WorldIndex

World-scoped voxel identity for cell-scoped changes.

public readonly WorldVoxelIndex WorldIndex

Field Value

WorldVoxelIndex

WorldSpawnToken

Runtime token of the world that produced the change.

public readonly long WorldSpawnToken

Field Value

long

Methods

CompareTo(GridDiagnosticChange)

public int CompareTo(GridDiagnosticChange other)

Parameters

other GridDiagnosticChange

Returns

int

Equals(GridDiagnosticChange)

public bool Equals(GridDiagnosticChange other)

Parameters

other GridDiagnosticChange

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int