mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-06-30 07:24:26 +08:00
1、修改框架配置config.js到项目根目录下
2、添加框架默认远程资源加载的配置信息
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user