Skip to content

1681-engine / index / AutotileRuleSet

Interface: AutotileRuleSet ​

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

Read once, the first time it is used (compiled lookups are kept per object): build a new set to change the rules.

Properties ​

edge? ​

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

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

What lies outside the grid; see MaskOptions.edge.


empty? ​

ts
optional empty?: number;

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

The tile for a terrain no rule draws (default 0, an empty cell).


rules ​

ts
rules: readonly AutotileRule[];

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

Released under the MIT License.