mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
implemented a basic NotificationCenter
This commit is contained in:
parent
c7898319c3
commit
fe7205648d
2 changed files with 51 additions and 3 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue