Struct GridEventInfo
Immutable snapshot describing a grid at the time a world grid notification is raised.
public readonly struct GridEventInfo
- Inherited Members
Constructors
GridEventInfo(long, ushort, long, GridConfiguration, uint, GridEventKind, VoxelIndex, Vector3d, Vector3d)
Initializes a new immutable grid event snapshot.
public GridEventInfo(long worldSpawnToken, ushort gridIndex, long gridSpawnToken, GridConfiguration configuration, uint gridVersion, GridEventKind changeKind = GridEventKind.Unspecified, VoxelIndex voxelIndex = default, Vector3d affectedBoundsMin = default, Vector3d affectedBoundsMax = default)
Parameters
worldSpawnTokenlonggridIndexushortgridSpawnTokenlongconfigurationGridConfigurationgridVersionuintchangeKindGridEventKindvoxelIndexVoxelIndexaffectedBoundsMinVector3daffectedBoundsMaxVector3d
Fields
AffectedBoundsMax
The maximum world-space bounds affected by this event.
public readonly Vector3d AffectedBoundsMax
Field Value
- Vector3d
AffectedBoundsMin
The minimum world-space bounds affected by this event.
public readonly Vector3d AffectedBoundsMin
Field Value
- Vector3d
ChangeKind
The reason this grid event was raised.
public readonly GridEventKind ChangeKind
Field Value
Configuration
The snapped configuration for the grid when the notification was raised.
public readonly GridConfiguration Configuration
Field Value
GridIndex
The stable slot index assigned to the grid within ActiveGrids.
public readonly ushort GridIndex
Field Value
GridSpawnToken
The 64-bit world-local allocation generation for the grid occupying GridIndex.
public readonly long GridSpawnToken
Field Value
GridVersion
The per-grid version recorded when the notification was raised.
public readonly uint GridVersion
Field Value
VoxelIndex
The changed voxel index for voxel-scoped grid events.
public readonly VoxelIndex VoxelIndex
Field Value
WorldSpawnToken
The process-unique 64-bit runtime allocation token of the owning GridWorld instance.
public readonly long WorldSpawnToken
Field Value
Properties
BoundsMax
The maximum snapped bounds of the grid.
public Vector3d BoundsMax { get; }
Property Value
- Vector3d
BoundsMin
The minimum snapped bounds of the grid.
public Vector3d BoundsMin { get; }
Property Value
- Vector3d
Methods
ToBoundsKey()
Creates an exact bounds key from the stored grid configuration.
public BoundsKey ToBoundsKey()