Also removing dead class
This commit is contained in:
parent
17e7f1b37a
commit
62cb8cca87
@ -87,29 +87,6 @@ export interface ListMessageUserPositionInterface {
|
||||
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 {
|
||||
x: number,
|
||||
y: number
|
||||
|
Loading…
Reference in New Issue
Block a user