implemented a basic NotificationCenter

This commit is contained in:
Jeena Paradies 2012-07-20 19:33:26 +02:00
parent c7898319c3
commit fe7205648d
2 changed files with 51 additions and 3 deletions

View file

@ -1,10 +1,12 @@
define(["Chuck/ServerGame"], function(ServerGame) {
define(["Chuck/ServerGame", "Server/Factory"], function(ServerGame, Factory) {
function Channel(name) {
this.factory = new Factory();
this.name = name;
this.users = {};
this.serverGame = new ServerGame(this);
this.serverGame.loadLevel("default.json")
this.serverGame = this.factory.new(ServerGame, this);
this.serverGame.loadLevel("default.json");
}
Channel.validateName = function(name){