update of client data by server

This commit is contained in:
Jeena Paradies 2012-07-13 22:49:15 +02:00
parent 2cb401bbd3
commit c8d0a48489
11 changed files with 239 additions and 120 deletions

View file

@ -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;
});