A whitelist of what tiles are allowed to abut another tile.

interface Constraint<D> {
    edge: Edge;
    coords: D;
}

Type Parameters

  • D extends number[]

Properties

Properties

edge: Edge

The tile allowed to be placed.

coords: D

The axis of the allowed placement, if the tileset is a 3D matrix for instance: X-Axis = 0, Y-Axis = 1, Z-Axis = 2