ExtinctionOnline/static/js/player-controller.js
2022-11-04 22:05:08 +09:00

19 lines
368 B
JavaScript

class PlayerController {
hostClientId;
constructor() {
}
onGameMessage(message){
message.body.commands.forEach(command=>{
switch(command.name){
case commands.gameStart:
this.hostClientId = message.from;
break;
}
});
}
joinNewPlayer(obj){
}
}