Merge pull request #83 from thecodingmachine/cleanup_rename_frame

Cleanup: renaming "frame" to "character"
This commit is contained in:
David Négrier
2020-05-08 16:21:16 +02:00
committed by GitHub
9 changed files with 49 additions and 49 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ export class IoSocketController {
socket.roomId = message.roomId;
socket.userId = message.userId;
socket.name = message.name;
socket.frame = message.frame;
socket.character = message.character;
}
refreshUserPosition() {
@@ -7,6 +7,6 @@ export interface ExSocketInterface extends Socket {
webRtcRoomId: string;
userId: string;
name: string;
frame: string;
character: string;
position: PointInterface;
}
}
+2 -2
View File
@@ -27,7 +27,7 @@ let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server
roomId: socket.roomId,
position: socket.position,
name: socket.name,
frame: socket.frame,
character: socket.character,
};
let dataArray = <any>[];
if (mapPositionUserByRoom.get(data.roomId)) {
@@ -47,4 +47,4 @@ let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server
export {
RefreshUserPositionFunction
}
}
+4 -4
View File
@@ -2,7 +2,7 @@ export class Message {
userId: string;
roomId: string;
name: string;
frame: string;
character: string;
constructor(data: any) {
if (!data.userId || !data.roomId) {
@@ -11,7 +11,7 @@ export class Message {
this.userId = data.userId;
this.roomId = data.roomId;
this.name = data.name;
this.frame = data.frame;
this.character = data.character;
}
toJson() {
@@ -19,7 +19,7 @@ export class Message {
userId: this.userId,
roomId: this.roomId,
name: this.name,
frame: this.frame
character: this.character
}
}
}
}