first step on loading a tileset from a script
This commit is contained in:
parent
2f9cc393a7
commit
3506063e65
9 changed files with 276 additions and 3 deletions
15
front/src/Api/Events/TilesetEvent.ts
Normal file
15
front/src/Api/Events/TilesetEvent.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import * as tg from "generic-type-guard";
|
||||
|
||||
export const isTilesetEvent =
|
||||
new tg.IsInterface().withProperties({
|
||||
name : tg.isString,
|
||||
imgUrl : tg.isString,
|
||||
tilewidth : tg.isNumber,
|
||||
tileheight : tg.isNumber,
|
||||
margin : tg.isNumber,
|
||||
spacing : tg.isNumber,
|
||||
}).get();
|
||||
/**
|
||||
* A message sent from the iFrame to the game to show/hide a layer.
|
||||
*/
|
||||
export type TilesetEvent = tg.GuardedType<typeof isTilesetEvent>;
|
Loading…
Add table
Add a link
Reference in a new issue