Removing dead code from previous messaging system
Remvoing messages that were no more used in the new messaging system (the code used to handle the message that sent the position of all users on the front side)
This commit is contained in:
parent
0ade4daa99
commit
17e7f1b37a
3 changed files with 5 additions and 91 deletions
|
@ -98,22 +98,6 @@ export class GameManager {
|
|||
this.currentGameScene.removePlayer(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Share position in game
|
||||
* @param ListMessageUserPosition
|
||||
* @deprecated
|
||||
*/
|
||||
shareUserPosition(ListMessageUserPosition: ListMessageUserPositionInterface): void {
|
||||
if (this.status === StatusGameManagerEnum.IN_PROGRESS) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.currentGameScene.shareUserPosition(ListMessageUserPosition.listUsersPosition)
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
initUsersPosition(usersPosition: MessageUserPositionInterface[]): void {
|
||||
// Shall we wait for room to be loaded?
|
||||
/*if (this.status === StatusGameManagerEnum.IN_PROGRESS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue