mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
altered define paths
This commit is contained in:
parent
38bc5adabd
commit
e70366398f
1 changed files with 7 additions and 3 deletions
10
app/Lobby/Coordinator.js
Normal file → Executable file
10
app/Lobby/Coordinator.js
Normal file → Executable file
|
|
@ -1,4 +1,9 @@
|
||||||
define(["Server/User", "Server/Channel", "Server/Factory"], function(User, Channel, Factory) {
|
define([
|
||||||
|
"Game/Server/User",
|
||||||
|
"Game/Server/Channel"
|
||||||
|
],
|
||||||
|
|
||||||
|
function(User, Channel) {
|
||||||
|
|
||||||
function Coordinator() {
|
function Coordinator() {
|
||||||
this.channels = {};
|
this.channels = {};
|
||||||
|
|
@ -30,8 +35,7 @@ define(["Server/User", "Server/Channel", "Server/Factory"], function(User, Chann
|
||||||
|
|
||||||
var channel = this.channels[channelName];
|
var channel = this.channels[channelName];
|
||||||
if(!channel) {
|
if(!channel) {
|
||||||
var factory = new Factory();
|
channel = new Channel(channelName);
|
||||||
channel = factory.new(Channel, channelName);
|
|
||||||
this.channels[channelName] = channel;
|
this.channels[channelName] = channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue