2021-05-10 11:19:18 +02:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
2021-06-25 18:14:40 +02:00
|
|
|
export const isLayerEvent = new tg.IsInterface()
|
|
|
|
.withProperties({
|
2021-05-10 11:19:18 +02:00
|
|
|
name: tg.isString,
|
2021-06-25 18:14:40 +02:00
|
|
|
})
|
|
|
|
.get();
|
2021-05-10 11:19:18 +02:00
|
|
|
/**
|
|
|
|
* A message sent from the iFrame to the game to show/hide a layer.
|
|
|
|
*/
|
|
|
|
export type LayerEvent = tg.GuardedType<typeof isLayerEvent>;
|