mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
ground work for different users on server and players on client
This commit is contained in:
parent
e37d1eeb2e
commit
2cb401bbd3
9 changed files with 122 additions and 54 deletions
|
|
@ -25,7 +25,6 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
|
|||
|
||||
User.prototype.setChannel = function(channel){
|
||||
this.channel = channel;
|
||||
this.sendCommand('joinSuccess', channel.name);
|
||||
}
|
||||
|
||||
User.prototype.sendCommand = function(command, options) {
|
||||
|
|
@ -56,7 +55,7 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
|
|||
break;
|
||||
|
||||
case 'gameCommand':
|
||||
//this.channel.game.processGameCommand(options);
|
||||
this.channel.processGameCommandFromUser(options, this);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue