TileAdjacencyRule
Defined in: src/scenario/registry.ts:54
Adjacency rule attached to a tile declaration for validation and generation.
Properties
Section titled “Properties”allowOffBoard?
Section titled “allowOffBoard?”
optionalallowOffBoard?:boolean
Defined in: src/scenario/registry.ts:66
Allows masked edges to face outside the board instead of another tile.
channel
Section titled “channel”channel:
string
Defined in: src/scenario/registry.ts:56
Connection channel that the rule applies to.
forbidsNeighborTerrain?
Section titled “forbidsNeighborTerrain?”
optionalforbidsNeighborTerrain?: readonlystring[]
Defined in: src/scenario/registry.ts:64
Neighbor terrain values that are rejected for the masked edges.
mask:
number
Defined in: src/scenario/registry.ts:58
Six-bit clockwise edge mask the rule constrains.
reciprocal?
Section titled “reciprocal?”
optionalreciprocal?:boolean
Defined in: src/scenario/registry.ts:60
Whether neighbors should satisfy the same channel in the opposite direction.
requiresNeighborTerrain?
Section titled “requiresNeighborTerrain?”
optionalrequiresNeighborTerrain?: readonlystring[]
Defined in: src/scenario/registry.ts:62
Neighbor terrain values that are allowed for the masked edges.