Struct ObstacleEventInfo
Immutable snapshot describing a single obstacle mutation on a voxel.
public readonly struct ObstacleEventInfo
- Inherited Members
Constructors
ObstacleEventInfo(WorldVoxelIndex, ObstacleToken, byte, uint, GridChangeStamp)
Initializes a new immutable obstacle mutation snapshot.
public ObstacleEventInfo(WorldVoxelIndex voxelIndex, ObstacleToken obstacleToken, byte obstacleCount, uint gridVersion, GridChangeStamp changeStamp = default)
Parameters
voxelIndexWorldVoxelIndexobstacleTokenObstacleTokenobstacleCountbytegridVersionuintchangeStampGridChangeStamp
Fields
ChangeStamp
The world-owned ordering and cause identity for this committed mutation.
public readonly GridChangeStamp ChangeStamp
Field Value
GridVersion
The grid version recorded after the mutation completes.
public readonly uint GridVersion
Field Value
ObstacleCount
The number of active obstacles on the voxel after the mutation completes.
public readonly byte ObstacleCount
Field Value
ObstacleToken
The token identifying the obstacle that was added or removed.
public readonly ObstacleToken ObstacleToken
Field Value
VoxelIndex
The voxel affected by the obstacle mutation.
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; }