Table of Contents

Struct GridEventInfo

Namespace
GridForge.Grids
Assembly
GridForge.dll

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

worldSpawnToken long
gridIndex ushort
gridSpawnToken long
configuration GridConfiguration
gridVersion uint
changeKind GridEventKind
voxelIndex VoxelIndex
affectedBoundsMin Vector3d
affectedBoundsMax Vector3d

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

GridEventKind

Configuration

The snapped configuration for the grid when the notification was raised.

public readonly GridConfiguration Configuration

Field Value

GridConfiguration

GridIndex

The stable slot index assigned to the grid within ActiveGrids.

public readonly ushort GridIndex

Field Value

ushort

GridSpawnToken

The 64-bit world-local allocation generation for the grid occupying GridIndex.

public readonly long GridSpawnToken

Field Value

long

GridVersion

The per-grid version recorded when the notification was raised.

public readonly uint GridVersion

Field Value

uint

VoxelIndex

The changed voxel index for voxel-scoped grid events.

public readonly VoxelIndex VoxelIndex

Field Value

VoxelIndex

WorldSpawnToken

The process-unique 64-bit runtime allocation token of the owning GridWorld instance.

public readonly long WorldSpawnToken

Field Value

long

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()

Returns

BoundsKey