Struct ObstacleEventInfo
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
voxelIndexWorldVoxelIndexobstacleTokenObstacleTokenobstacleCountbytegridVersionuint
Fields
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
GridIndex
The grid index containing VoxelIndex.
public ushort GridIndex { get; }