mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +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
|
|
@ -55,7 +55,9 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
|
|||
break;
|
||||
|
||||
case 'gameCommand':
|
||||
this.channel.processGameCommandFromUser(options, this);
|
||||
for(var c in options) {
|
||||
this.channel.processGameCommandFromUser(c, options[c], this);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -63,6 +65,10 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
|
|||
}
|
||||
}
|
||||
|
||||
User.prototype.toString = function() {
|
||||
return "[User " + this.id + "]";
|
||||
};
|
||||
|
||||
return User;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue