2021-03-08 18:57:59 +01:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
2021-09-06 14:27:54 +02:00
|
|
|
export const isEnterLeaveEvent = new tg.IsInterface()
|
|
|
|
.withProperties({
|
2021-03-08 18:57:59 +01:00
|
|
|
name: tg.isString,
|
2021-09-06 14:27:54 +02:00
|
|
|
})
|
|
|
|
.get();
|
2021-03-08 18:57:59 +01:00
|
|
|
/**
|
|
|
|
* A message sent from the game to the iFrame when a user enters or leaves a zone marked with the "zone" property.
|
|
|
|
*/
|
|
|
|
export type EnterLeaveEvent = tg.GuardedType<typeof isEnterLeaveEvent>;
|