mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Finished nc (notification center topic style refactoring) - fixes #60
This commit is contained in:
parent
cacd5d74c0
commit
76d9450257
9 changed files with 67 additions and 30 deletions
|
|
@ -24,15 +24,18 @@
|
|||
|
||||
this.gameController = new GameController(this);
|
||||
|
||||
Nc.on('channel/controlCommand', function (message) {
|
||||
|
||||
Nc.on(Nc.ns.channel.events.controlCommand.channel, function (message) {
|
||||
ProtocolHelper.applyCommand(message.data, self);
|
||||
});
|
||||
|
||||
Nc.on('broadcastControlCommand', this.broadcastControlCommand, this);
|
||||
Nc.on('broadcastControlCommandExcept', this.broadcastControlCommandExcept, this);
|
||||
|
||||
|
||||
|
||||
Nc.on(Nc.ns.channel.to.client.gameCommand.broadcast, this.broadcastGameCommand, this);
|
||||
Nc.on('broadcastGameCommandExcept', this.broadcastGameCommandExcept, this);
|
||||
|
||||
// prepared - not triggered yet
|
||||
//Nc.on(Nc.ns.channel.to.client.gameCommand.broadcastExcept, this.broadcastGameCommandExcept, this);
|
||||
//Nc.on(Nc.ns.channel.to.client.controlCommand.broadcast, this.broadcastControlCommand, this);
|
||||
//Nc.on(Nc.ns.channel.to.client.controlCommand.broadcastExcept, this.broadcastControlCommandExcept, this);
|
||||
|
||||
console.checkpoint('channel ' + this.name + ' created');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue