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
kindGridDiagnosticCellKindworldSpawnTokenlonggridIndexushortgridSpawnTokenlongindexVoxelIndexworldPositionVector3dtopologyKindGridTopologyKindstorageKindGridStorageKindtopologyMetricsGridTopologyMetricsstateGridDiagnosticCellStateworldIndexWorldVoxelIndex
Fields
GridIndex
World-local grid slot that owns this cell.
public readonly ushort GridIndex
Field Value
GridSpawnToken
Runtime token of the grid instance when the descriptor was created.
public readonly long GridSpawnToken
Field Value
Index
Topology-local cell index.
public readonly VoxelIndex Index
Field Value
Kind
Identifies whether this descriptor represents a physical voxel or a missing sparse address-space cell.
public readonly GridDiagnosticCellKind Kind
Field Value
State
Diagnostic state flags for filtering and adapter overlays.
public readonly GridDiagnosticCellState State
Field Value
StorageKind
Storage kind of the grid that owns this descriptor.
public readonly GridStorageKind StorageKind
Field Value
TopologyKind
Topology kind used to interpret the local index and geometry.
public readonly GridTopologyKind TopologyKind
Field Value
TopologyMetrics
Topology metrics used to derive diagnostic geometry.
public readonly GridTopologyMetrics TopologyMetrics
Field Value
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
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