Also removing dead class
This commit is contained in:
parent
17e7f1b37a
commit
62cb8cca87
1 changed files with 0 additions and 23 deletions
|
@ -87,29 +87,6 @@ export interface ListMessageUserPositionInterface {
|
||||||
listUsersPosition: Array<MessageUserPosition>;
|
listUsersPosition: Array<MessageUserPosition>;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ListMessageUserPosition {
|
|
||||||
roomId: string;
|
|
||||||
listUsersPosition: Array<MessageUserPosition>;
|
|
||||||
|
|
||||||
constructor(roomId: string, data: any) {
|
|
||||||
this.roomId = roomId;
|
|
||||||
this.listUsersPosition = new Array<MessageUserPosition>();
|
|
||||||
data.forEach((userPosition: any) => {
|
|
||||||
this.listUsersPosition.push(new MessageUserPosition(
|
|
||||||
userPosition.userId,
|
|
||||||
new Point(
|
|
||||||
userPosition.position.x,
|
|
||||||
userPosition.position.y,
|
|
||||||
userPosition.position.direction,
|
|
||||||
userPosition.position.moving
|
|
||||||
),
|
|
||||||
userPosition.name,
|
|
||||||
userPosition.character
|
|
||||||
));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PositionInterface {
|
export interface PositionInterface {
|
||||||
x: number,
|
x: number,
|
||||||
y: number
|
y: number
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue