chuck.js/app/Game/Server/Loader/Level.js

25 lines
No EOL
438 B
JavaScript
Executable file

define([
"Game/Core/Loader/Level",
"Game/Config/Settings"
"fs"
],
function (Parent, Fs) {
function Level () {
Parent.call(this);
}
Level.prototype = Object.create(Parent.prototype);
Level.prototype.loadLevelObjectFromPath = function (path, callback) {
// overwriting parent
fs.readFile( + path, function (err, data) {
if (err) throw err;
callback(data);
});
}
return Level;
});