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
kindGridDiagnosticChangeKindworldSpawnTokenlonggridIndexushortgridSpawnTokenlongworldIndexWorldVoxelIndexvoxelIndexVoxelIndexboundsMinVector3dboundsMaxVector3d
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
GridSpawnToken
Runtime token of the grid instance affected by the change.
public readonly long GridSpawnToken
Field Value
Kind
Kind flags coalesced for this dirty change.
public readonly GridDiagnosticChangeKind Kind
Field Value
VoxelIndex
Topology-local voxel index for cell or sparse address-range changes.
public readonly VoxelIndex VoxelIndex
Field Value
WorldIndex
World-scoped voxel identity for cell-scoped changes.
public readonly WorldVoxelIndex WorldIndex
Field Value
WorldSpawnToken
Runtime token of the world that produced the change.
public readonly long WorldSpawnToken
Field Value
Methods
CompareTo(GridDiagnosticChange)
public int CompareTo(GridDiagnosticChange other)
Parameters
otherGridDiagnosticChange
Returns
Equals(GridDiagnosticChange)
public bool Equals(GridDiagnosticChange other)
Parameters
otherGridDiagnosticChange
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()