Skip to content

TileAdjacencyRule

Defined in: src/scenario/registry.ts:54

Adjacency rule attached to a tile declaration for validation and generation.

optional allowOffBoard?: boolean

Defined in: src/scenario/registry.ts:66

Allows masked edges to face outside the board instead of another tile.


channel: string

Defined in: src/scenario/registry.ts:56

Connection channel that the rule applies to.


optional forbidsNeighborTerrain?: readonly string[]

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.


optional reciprocal?: boolean

Defined in: src/scenario/registry.ts:60

Whether neighbors should satisfy the same channel in the opposite direction.


optional requiresNeighborTerrain?: readonly string[]

Defined in: src/scenario/registry.ts:62

Neighbor terrain values that are allowed for the masked edges.