Table of Contents

Class BoundsBlocker

Namespace
GridForge.Blockers
Assembly
GridForge.dll

A manually placed blocker that obstructs a defined world-space bounding box.

public class BoundsBlocker : Blocker, IBlocker
Inheritance
BoundsBlocker
Implements
Inherited Members

Constructors

BoundsBlocker(GridWorld, FixedBoundBox, bool, bool)

Initializes a new bounds blocker bound to the supplied world.

public BoundsBlocker(GridWorld world, FixedBoundBox blockBounds, bool isActive = true, bool cacheCoveredVoxels = false)

Parameters

world GridWorld

The world whose grids this blocker should affect.

blockBounds FixedBoundBox

The bounding box to block.

isActive bool

Flag whether or not blocker is active.

cacheCoveredVoxels bool

Flag whether or not to cache covered voxels.

BoundsBlocker(GridWorld, Vector3d, Vector3d, bool, bool)

Initializes a new bounds blocker from world-space min/max bounds.

public BoundsBlocker(GridWorld world, Vector3d boundsMin, Vector3d boundsMax, bool isActive = true, bool cacheCoveredVoxels = false)

Parameters

world GridWorld

The world whose grids this blocker should affect.

boundsMin Vector3d

The world-space minimum bound.

boundsMax Vector3d

The world-space maximum bound.

isActive bool

Flag whether or not blocker is active.

cacheCoveredVoxels bool

Flag whether or not to cache covered voxels.

Methods

GetBoundsMax()

Gets the max bounds of the area to block. Must be implemented by subclasses.

protected override Vector3d GetBoundsMax()

Returns

Vector3d

GetBoundsMin()

Gets the min bounds of the area to block. Must be implemented by subclasses.

protected override Vector3d GetBoundsMin()

Returns

Vector3d