SetTiles can now set a tile to null so that there is no more tile.

This commit is contained in:
GRL 2021-07-07 14:42:17 +02:00
parent a7ced533c0
commit bef5e139c0
3 changed files with 27 additions and 12 deletions

View file

@ -5,7 +5,7 @@ export const isSetTilesEvent = tg.isArray(
.withProperties({
x: tg.isNumber,
y: tg.isNumber,
tile: tg.isUnion(tg.isNumber, tg.isString),
tile: tg.isUnion(tg.isUnion(tg.isNumber, tg.isString), tg.isNull),
layer: tg.isString,
})
.get()