Struct GridDiagnosticQuery
- Namespace
- GridForge.Diagnostics
- Assembly
- GridForge.dll
Immutable filter and budget settings for a diagnostic cell query.
public readonly struct GridDiagnosticQuery
- Inherited Members
Constructors
GridDiagnosticQuery(ushort?, GridTopologyKind?, GridStorageKind?, GridDiagnosticAddressMode, GridDiagnosticCellState, GridDiagnosticCellState, Vector3d?, Vector3d?, int, bool)
Initializes a diagnostic query.
public GridDiagnosticQuery(ushort? gridIndex = null, GridTopologyKind? topologyKind = null, GridStorageKind? storageKind = null, GridDiagnosticAddressMode addressMode = GridDiagnosticAddressMode.PhysicalOnly, GridDiagnosticCellState requiredStates = GridDiagnosticCellState.None, GridDiagnosticCellState excludedStates = GridDiagnosticCellState.None, Vector3d? boundsMin = null, Vector3d? boundsMax = null, int maxCells = 65536, bool allowFullAddressSpaceScan = false)
Parameters
gridIndexushort?topologyKindGridTopologyKind?storageKindGridStorageKind?addressModeGridDiagnosticAddressModerequiredStatesGridDiagnosticCellStateexcludedStatesGridDiagnosticCellStateboundsMinVector3d?boundsMaxVector3d?maxCellsintallowFullAddressSpaceScanbool
Fields
AddressMode
Selects whether the query should return physical cells, missing sparse address cells, or both.
public readonly GridDiagnosticAddressMode AddressMode
Field Value
AllowFullAddressSpaceScan
Allows missing sparse address-space queries to scan the whole grid address space when no bounds are supplied.
public readonly bool AllowFullAddressSpaceScan
Field Value
BoundsMax
Optional world-space maximum bounds for the query.
public readonly Vector3d? BoundsMax
Field Value
- Vector3d?
BoundsMin
Optional world-space minimum bounds for the query.
public readonly Vector3d? BoundsMin
Field Value
- Vector3d?
DefaultMaxCells
Default maximum number of diagnostic cells returned by a single query.
public const int DefaultMaxCells = 65536
Field Value
ExcludedStates
State flags that exclude a cell from the result.
public readonly GridDiagnosticCellState ExcludedStates
Field Value
GridIndex
Optional world-local grid slot filter.
public readonly ushort? GridIndex
Field Value
MaxCells
Maximum number of cells this query may return before it is stopped.
public readonly int MaxCells
Field Value
RequiredStates
State flags that a returned cell must contain.
public readonly GridDiagnosticCellState RequiredStates
Field Value
StorageKind
Optional storage-kind filter.
public readonly GridStorageKind? StorageKind
Field Value
TopologyKind
Optional topology filter.
public readonly GridTopologyKind? TopologyKind
Field Value
Methods
AllPhysical()
Creates a query that returns physical cells from all active grids.
public static GridDiagnosticQuery AllPhysical()
Returns
ForBounds(Vector3d, Vector3d)
Creates a physical-cell query clipped to world-space bounds.
public static GridDiagnosticQuery ForBounds(Vector3d min, Vector3d max)
Parameters
minVector3dmaxVector3d
Returns
ForGrid(ushort)
Creates a physical-cell query for one world-local grid slot.
public static GridDiagnosticQuery ForGrid(ushort gridIndex)
Parameters
gridIndexushort