Struct ObstacleClearEventInfo
Immutable snapshot describing a bulk obstacle clear operation on a voxel.
public readonly struct ObstacleClearEventInfo
- Inherited Members
Constructors
ObstacleClearEventInfo(WorldVoxelIndex, byte, uint)
Initializes a new immutable obstacle clear snapshot.
public ObstacleClearEventInfo(WorldVoxelIndex voxelIndex, byte clearedObstacleCount, uint gridVersion)
Parameters
voxelIndexWorldVoxelIndexclearedObstacleCountbytegridVersionuint
Fields
ClearedObstacleCount
The number of obstacles removed by the clear operation.
public readonly byte ClearedObstacleCount
Field Value
GridVersion
The grid version recorded after the clear operation completes.
public readonly uint GridVersion
Field Value
VoxelIndex
The voxel that had its obstacles cleared.
public readonly WorldVoxelIndex VoxelIndex
Field Value
Properties
GridIndex
The grid index containing VoxelIndex.
public ushort GridIndex { get; }