workadventure/front/src/Api/Events/CameraFollowPlayerEvent.ts

12 lines
352 B
TypeScript
Raw Normal View History

2021-12-16 13:41:28 +01:00
import * as tg from "generic-type-guard";
export const isCameraFollowPlayerEvent = new tg.IsInterface()
.withProperties({
smooth: tg.isBoolean,
})
.get();
/**
* A message sent from the iFrame to the game to make the camera follow player.
*/
export type CameraFollowPlayerEvent = tg.GuardedType<typeof isCameraFollowPlayerEvent>;