1、修改框架配置config.js到项目根目录下

2、添加框架默认远程资源加载的配置信息
This commit is contained in:
dgflash
2023-02-15 09:17:54 +08:00
parent 8c7b05da3d
commit cc0d243a37
3 changed files with 27 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
* @Author: dgflash
* @Date: 2021-07-03 16:13:17
* @LastEditors: dgflash
* @LastEditTime: 2022-11-01 15:26:26
* @LastEditTime: 2023-02-14 14:27:22
*/
import { oops } from "../../core/Oops";
@@ -51,6 +51,23 @@ export class GameConfig {
return this._data.language.path.texture || "language/texture";
}
/** 是否启用远程资源 */
get bundleEnable(): string {
return this._data.bundle.enable;
}
/** 远程资源服务器地址 */
get bundleServer(): string {
return this._data.bundle.server;
}
/** 远程资源名 */
get bundleName(): string {
return this._data.bundle.name;
}
/** 远程资源版本号 */
get bundleVersion(): string {
return this._data.bundle.version;
}
private _data: any = null;
/** 游戏配置数据 */
public get data(): any {