@@ -45,9 +45,14 @@ define([ | |||||
getSpritesheet: function(className) { | getSpritesheet: function(className) { | ||||
return this.stats[className].spritesheet || 'characters'; | return this.stats[className].spritesheet || 'characters'; | ||||
}, | |||||
rebuild: function() { | |||||
events.emit('onBeforeGetClasses', classes); | |||||
} | } | ||||
}; | }; | ||||
events.emit('onBeforeGetClasses', classes); | events.emit('onBeforeGetClasses', classes); | ||||
return classes; | return classes; | ||||
}); | }); |
@@ -33,6 +33,6 @@ define([ | |||||
mod.init(); | mod.init(); | ||||
} | } | ||||
}, this); | }, this); | ||||
} | |||||
} | |||||
}; | }; | ||||
}); | }); |
@@ -0,0 +1 @@ | |||||
Subproject commit 6fcf045b2d70bfe820e38074ac087533c0ceddb2 |
@@ -0,0 +1 @@ | |||||
Subproject commit 6fcf045b2d70bfe820e38074ac087533c0ceddb2 |
@@ -25,6 +25,7 @@ define([ | |||||
global.gc(); | global.gc(); | ||||
}, 60000); | }, 60000); | ||||
mods.init(); | |||||
globals.init(); | globals.init(); | ||||
components.init(this.onComponentsReady.bind(this)); | components.init(this.onComponentsReady.bind(this)); | ||||
}, | }, | ||||
@@ -32,7 +33,6 @@ define([ | |||||
server.init(this.onServerReady.bind(this)); | server.init(this.onServerReady.bind(this)); | ||||
}, | }, | ||||
onServerReady: function() { | onServerReady: function() { | ||||
mods.init(); | |||||
atlas.init(); | atlas.init(); | ||||
leaderboard.init(); | leaderboard.init(); | ||||
} | } | ||||