mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
removed worm
This commit is contained in:
parent
69fd43a900
commit
0adbc2a10a
4 changed files with 16 additions and 26 deletions
|
|
@ -15,25 +15,18 @@
|
|||
this.users = {};
|
||||
|
||||
this.pipeToLobby = pipeToLobby;
|
||||
|
||||
this.gameController = new GameController(this);
|
||||
|
||||
this.gameController.loadLevel("default.json");
|
||||
|
||||
//this.pipeToLobby.receive = function (message) { self.onMessage(message) };
|
||||
// !!! This should be done differently - use NotificationCenter.on('channel/dungeon/message') instead
|
||||
|
||||
/*
|
||||
var self = this;
|
||||
NotificationCenter.on("processGameCommandFromUser", function (topic, args) {
|
||||
self.processGameCommandFromUser.apply(self, args);
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
*/
|
||||
|
||||
// Messages look like:
|
||||
// {channel: {setName: 'foo'}}
|
||||
// {user: {jupm: null}, id: 12}
|
||||
NotificationCenter.on('channel/message', function (message) {
|
||||
|
||||
switch(message.recipient) {
|
||||
|
|
@ -60,7 +53,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
NotificationCenter.on('channel/users/all', this.sendControlCommandToAllUsers, this);
|
||||
NotificationCenter.on('sendControlCommandToAllUsers', this.sendControlCommandToAllUsers, this);
|
||||
NotificationCenter.on('channel/users/all/except', this.sendControlCommandToAllUsersExcept, this);
|
||||
|
||||
console.checkpoint('channel ' + name + ' created');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue