refactored to Array of tile
This commit is contained in:
parent
bed45a8310
commit
8db72d2dfd
2 changed files with 17 additions and 14 deletions
|
@ -3,13 +3,14 @@ import * as tg from "generic-type-guard";
|
|||
export const updateTile = "updateTile"
|
||||
|
||||
|
||||
export const isUpdateTileEvent =
|
||||
export const isUpdateTileEvent = tg.isArray(
|
||||
new tg.IsInterface().withProperties({
|
||||
x: tg.isNumber,
|
||||
y: tg.isNumber,
|
||||
tile: tg.isUnion(tg.isNumber, tg.isString),
|
||||
layer: tg.isUnion(tg.isNumber, tg.isString)
|
||||
}).get();
|
||||
}).get()
|
||||
);
|
||||
/**
|
||||
* A message sent from the game to the iFrame when a user enters or leaves a zone marked with the "zone" property.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue