Player move API wip

This commit is contained in:
Hanusiak Piotr 2022-01-19 09:34:06 +01:00
parent e0e1a7e76a
commit 29e44d3023
7 changed files with 297 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import * as tg from "generic-type-guard";
export const isWalkPlayerToEventConfig = new tg.IsInterface()
.withProperties({
x: tg.isNumber,
y: tg.isNumber,
speed: tg.isNumber,
})
.get();
export type WalkPlayerToEvent = tg.GuardedType<typeof isWalkPlayerToEventConfig>;