enter and leave zone events

This commit is contained in:
Hanusiak Piotr
2021-12-08 13:18:06 +01:00
parent 03cf5c05ff
commit 4d473480cf
5 changed files with 39 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
import * as tg from "generic-type-guard";
export const isChangeZoneEvent = new tg.IsInterface()
.withProperties({
name: tg.isString,
})
.get();
/**
* A message sent from the game to the iFrame when a user enters or leaves a layer.
*/
export type ChangeZoneEvent = tg.GuardedType<typeof isChangeZoneEvent>;