alpha: 初始版本完善

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
2017-09-23 17:42:16 +08:00
parent fdeb2619ff
commit 7c5ad40497
15 changed files with 680 additions and 27 deletions

View File

@ -1,12 +1,19 @@
'use strict';
var boot;
var disable;
/**
* 初始化框架引擎
*/
(function () {
boot = function (plugin, engine) {
engine.put('root', plugin.getDataFolder());
engine.put('rootDir', plugin.getDataFolder().getCanonicalPath());
load(rootDir + '/modules/init.js');
init(plugin, engine);
}
boot = function (plugin) {
// 开发环境下初始化
var root = "src/main/resources";
if (plugin !== null) {
// noinspection JSUnresolvedVariable
root = plugin.dataFolder.canonicalPath;
}
load(root + '/core/init.js');
init(root, plugin);
disable = disablePlugins
};
})();