修复编辑器报错

This commit is contained in:
unanmed 2023-02-28 20:39:39 +08:00
parent 35f166fe9a
commit 25ff6c6462
4 changed files with 3 additions and 13 deletions

View File

@ -314,12 +314,6 @@ core.prototype._init_flags = function () {
core.firstData = core.clone(core.data.firstData);
this._init_sys_flags();
// 让你总是拼错!
window.on = true;
window.off = false;
window.ture = true;
window.flase = false;
core.dom.versionLabel.innerText = core.firstData.version;
core.dom.logoLabel.innerText = core.firstData.title;
document.title = core.firstData.title + ' - HTML5魔塔';

View File

@ -321,6 +321,8 @@ main.prototype.init = async function (mode, callback) {
core.init(coreData, callback);
core.resize();
main.core = core;
core.plugin = {};
// 加载插件
if (!main.replayChecking && main.mode === 'play') {

View File

@ -2,7 +2,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
init: function () {
// 这看不到插件插件全放到plugin文件夹里面了要看的话去 关于游戏 的开源地址里面看
// 直接把仓库clone下来或者下载zip都行
// 脚本编辑同理
// 脚本编辑同理一部分在plugin里面
this._afterLoadResources = function () {};
}
};

6
src/types/core.d.ts vendored
View File

@ -1427,12 +1427,6 @@ declare let flags: Flags;
*/
declare let hero: HeroStatus;
// 让你总是拼错不过现在有ts了应该拼不错了
declare const ture: true;
declare const flase: false;
declare const on: true;
declare const off: false;
/**
*
*/