api getMaps for create channel

This commit is contained in:
Jeena 2014-07-03 20:28:18 +02:00
parent a837d2099c
commit 6bc9b7e32b
8 changed files with 509 additions and 1658 deletions

View file

@ -4,7 +4,7 @@ define([
"fs"
],
function (Parent, Settings, fs) {
function (Parent, Settings, FileSystem) {
function Level (uid, engine, gameObjects) {
Parent.call(this, uid, engine, gameObjects);
@ -15,7 +15,7 @@ function (Parent, Settings, fs) {
Level.prototype.loadLevelDataFromPath = function (path, callback) {
// overwriting parent
fs.readFile(path, "utf8", function (err, data) {
FileSystem.readFile(path, "utf8", function (err, data) {
if (err) throw err;
callback(JSON.parse(data));
});