Table of Contents

Struct GridDiagnosticCell

Namespace
GridForge.Diagnostics
Assembly
GridForge.dll

Immutable descriptor for a physical voxel or sparse address-space cell.

public readonly struct GridDiagnosticCell
Inherited Members

Constructors

GridDiagnosticCell(GridDiagnosticCellKind, long, ushort, long, VoxelIndex, Vector3d, GridTopologyKind, GridStorageKind, GridTopologyMetrics, GridDiagnosticCellState, WorldVoxelIndex)

Initializes a diagnostic cell descriptor.

public GridDiagnosticCell(GridDiagnosticCellKind kind, long worldSpawnToken, ushort gridIndex, long gridSpawnToken, VoxelIndex index, Vector3d worldPosition, GridTopologyKind topologyKind, GridStorageKind storageKind, GridTopologyMetrics topologyMetrics, GridDiagnosticCellState state, WorldVoxelIndex worldIndex)

Parameters

kind GridDiagnosticCellKind
worldSpawnToken long
gridIndex ushort
gridSpawnToken long
index VoxelIndex
worldPosition Vector3d
topologyKind GridTopologyKind
storageKind GridStorageKind
topologyMetrics GridTopologyMetrics
state GridDiagnosticCellState
worldIndex WorldVoxelIndex

Fields

GridIndex

World-local grid slot that owns this cell.

public readonly ushort GridIndex

Field Value

ushort

GridSpawnToken

Runtime token of the grid instance when the descriptor was created.

public readonly long GridSpawnToken

Field Value

long

Index

Topology-local cell index.

public readonly VoxelIndex Index

Field Value

VoxelIndex

Kind

Identifies whether this descriptor represents a physical voxel or a missing sparse address-space cell.

public readonly GridDiagnosticCellKind Kind

Field Value

GridDiagnosticCellKind

State

Diagnostic state flags for filtering and adapter overlays.

public readonly GridDiagnosticCellState State

Field Value

GridDiagnosticCellState

StorageKind

Storage kind of the grid that owns this descriptor.

public readonly GridStorageKind StorageKind

Field Value

GridStorageKind

TopologyKind

Topology kind used to interpret the local index and geometry.

public readonly GridTopologyKind TopologyKind

Field Value

GridTopologyKind

TopologyMetrics

Topology metrics used to derive diagnostic geometry.

public readonly GridTopologyMetrics TopologyMetrics

Field Value

GridTopologyMetrics

WorldIndex

World-scoped identity for the cell. Missing sparse address cells use a potential identity and do not resolve to a physical voxel.

public readonly WorldVoxelIndex WorldIndex

Field Value

WorldVoxelIndex

WorldPosition

Topology-projected world-space center for the cell.

public readonly Vector3d WorldPosition

Field Value

Vector3d

WorldSpawnToken

Runtime token of the owning world when the descriptor was created.

public readonly long WorldSpawnToken

Field Value

long