mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
api getMaps for create channel
This commit is contained in:
parent
a837d2099c
commit
6bc9b7e32b
8 changed files with 509 additions and 1658 deletions
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue