Makes world in Engine private

And some refactoring.
This commit is contained in:
logsol 2016-10-01 19:09:52 +02:00
parent 8641a2dc0b
commit c068592915
3 changed files with 12 additions and 14 deletions

View file

@ -25,6 +25,7 @@ define([
Level.prototype.load = function (uid) {
var self = this;
// FIXME: check if theres a security hazard here (user injected path)
var path = Settings.MAPS_PATH + uid + ".json";
this.loadLevelDataFromPath(path, function (levelData) {
self.setup(levelData);