mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
update of client data by server
This commit is contained in:
parent
2cb401bbd3
commit
c8d0a48489
11 changed files with 239 additions and 120 deletions
|
|
@ -13,7 +13,7 @@ define(["Chuck/ServerGame"], function(ServerGame) {
|
|||
Channel.prototype.addUser = function(user){
|
||||
this.users[user.id] = user;
|
||||
|
||||
user.sendCommand('joinSuccess', {chanelName: this.name, id: user.id});
|
||||
user.sendCommand('joinSuccess', {channelName: this.name, id: user.id});
|
||||
this.sendCommandToAllUsersExcept('userJoined', user.id, user);
|
||||
|
||||
this.serverGame.createPlayerForUser(user)
|
||||
|
|
@ -37,8 +37,8 @@ define(["Chuck/ServerGame"], function(ServerGame) {
|
|||
}
|
||||
}
|
||||
|
||||
Channel.prototype.processGameCommandFromUser = function(command, user) {
|
||||
console.log("not implemented processGameCommandFromUser: " + command + user);
|
||||
Channel.prototype.processGameCommandFromUser = function(command, options, user) {
|
||||
this.serverGame.progressGameCommandFromUser(command, options, user);
|
||||
}
|
||||
|
||||
return Channel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue