Player move API wip
This commit is contained in:
parent
e0e1a7e76a
commit
29e44d3023
7 changed files with 297 additions and 0 deletions
11
front/src/Api/Events/WalkPlayerToEvent.ts
Normal file
11
front/src/Api/Events/WalkPlayerToEvent.ts
Normal 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>;
|
Loading…
Add table
Add a link
Reference in a new issue