ab798b1c09
Also, refactoring JOIN_ROOM event to add complete position.
12 lines
394 B
TypeScript
12 lines
394 B
TypeScript
import {PointInterface} from "./PointInterface";
|
|
|
|
export class Point implements PointInterface{
|
|
constructor(public x : number, public y : number, public direction : string = "none", public moving : boolean = false) {
|
|
}
|
|
}
|
|
|
|
export class MessageUserPosition {
|
|
constructor(public userId: string, public name: string, public character: string, public position: PointInterface) {
|
|
}
|
|
}
|