Struct ObstacleClearEventInfo
Immutable snapshot describing a bulk obstacle clear operation on a voxel.
public readonly struct ObstacleClearEventInfo
- Inherited Members
Constructors
ObstacleClearEventInfo(WorldVoxelIndex, byte, uint, GridChangeStamp)
Initializes a new immutable obstacle clear snapshot.
public ObstacleClearEventInfo(WorldVoxelIndex voxelIndex, byte clearedObstacleCount, uint gridVersion, GridChangeStamp changeStamp = default)
Parameters
voxelIndexWorldVoxelIndexclearedObstacleCountbytegridVersionuintchangeStampGridChangeStamp
Fields
ChangeStamp
The world-owned ordering and cause identity for this committed mutation.
public readonly GridChangeStamp ChangeStamp
Field Value
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
CauseId
The logical cause shared with the corresponding grid notification.
public ulong CauseId { get; }
Property Value
ChangeSequence
The world-local commit order of this event.
public ulong ChangeSequence { get; }
Property Value
GridIndex
The grid index containing VoxelIndex.
public ushort GridIndex { get; }