Table of Contents

Struct ObstacleEventInfo

Namespace
GridForge.Grids
Assembly
GridForge.dll

Immutable snapshot describing a single obstacle mutation on a voxel.

public readonly struct ObstacleEventInfo
Inherited Members

Constructors

ObstacleEventInfo(WorldVoxelIndex, ObstacleToken, byte, uint)

Initializes a new immutable obstacle mutation snapshot.

public ObstacleEventInfo(WorldVoxelIndex voxelIndex, ObstacleToken obstacleToken, byte obstacleCount, uint gridVersion)

Parameters

voxelIndex WorldVoxelIndex
obstacleToken ObstacleToken
obstacleCount byte
gridVersion uint

Fields

GridVersion

The grid version recorded after the mutation completes.

public readonly uint GridVersion

Field Value

uint

ObstacleCount

The number of active obstacles on the voxel after the mutation completes.

public readonly byte ObstacleCount

Field Value

byte

ObstacleToken

The token identifying the obstacle that was added or removed.

public readonly ObstacleToken ObstacleToken

Field Value

ObstacleToken

VoxelIndex

The voxel affected by the obstacle mutation.

public readonly WorldVoxelIndex VoxelIndex

Field Value

WorldVoxelIndex

Properties

GridIndex

The grid index containing VoxelIndex.

public ushort GridIndex { get; }

Property Value

ushort