first notificationCenter replacement tests, seem to work

This commit is contained in:
Jeena Paradies 2012-07-21 01:11:26 +02:00
parent 043f2dbfda
commit 4ac86c69b4
3 changed files with 11 additions and 1 deletions

View file

@ -4,7 +4,13 @@ define(["Chuck/ServerGame"], function(ServerGame) {
this.name = name;
this.users = {};
this.serverGame = this.factory.new(ServerGame, this);
console.log("server game " + this.serverGame);
this.serverGame.loadLevel("default.json");
var self = this;
this.notificationCenter.on("processGameCommandFromUser", function(topic, args) {
self.processGameCommandFromUser.apply(self, args);
});
}
Channel.validateName = function(name){