2021-05-18 11:33:16 +02:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
2021-07-05 11:53:33 +02:00
|
|
|
export const isMapDataEvent = new tg.IsInterface()
|
2021-06-25 18:14:40 +02:00
|
|
|
.withProperties({
|
|
|
|
data: tg.isObject,
|
|
|
|
})
|
|
|
|
.get();
|
2021-05-18 11:33:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A message sent from the game to the iFrame when the data of the layers change after the iFrame send a message to the game that it want to listen to the data of the layers
|
|
|
|
*/
|
2021-07-05 11:53:33 +02:00
|
|
|
export type MapDataEvent = tg.GuardedType<typeof isMapDataEvent>;
|