Skip to content

1681-engine / index / MaskOptions

Interface: MaskOptions ​

Defined in: src/tilemap/autotile.ts:39

Properties ​

edge? ​

ts
optional edge?: "same" | "other";

Defined in: src/tilemap/autotile.ts:49

What lies outside the grid: 'same' (default) joins the edge so a terrain running off the map shows no border; 'other' closes it.


joins? ​

ts
optional joins?: (terrain, neighbour) => boolean;

Defined in: src/tilemap/autotile.ts:44

Whether a neighbour counts as "the same" for terrain (default: the same id). A rule's connectsTo builds one: grass that also joins flowers, a wall that also joins a door.

Parameters ​

ParameterType
terrainnumber
neighbournumber

Returns ​

boolean

Released under the MIT License.