@shimotsuki/core 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1013,9 +1013,9 @@ declare class Manager {
|
|
|
1013
1013
|
/**工具类 */
|
|
1014
1014
|
util: CoreUtil;
|
|
1015
1015
|
/**GUI资源配置 */
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1016
|
+
setConfig: ({ gui_path, gui_bundleName }?: {
|
|
1017
|
+
gui_path?: string;
|
|
1018
|
+
gui_bundleName?: string;
|
|
1019
1019
|
}) => this;
|
|
1020
1020
|
/**启动 */
|
|
1021
1021
|
boot(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -2547,13 +2547,13 @@ class Manager {
|
|
|
2547
2547
|
res;
|
|
2548
2548
|
/**工具类 */
|
|
2549
2549
|
util;
|
|
2550
|
-
#
|
|
2551
|
-
#
|
|
2550
|
+
#gui_path = 'core';
|
|
2551
|
+
#gui_bundleName = 'resources';
|
|
2552
2552
|
/**GUI资源配置 */
|
|
2553
|
-
|
|
2554
|
-
this.#
|
|
2555
|
-
this.#
|
|
2556
|
-
console.log('GUI资源配置', this.#
|
|
2553
|
+
setConfig = ({ gui_path = 'core', gui_bundleName = 'resources' } = {}) => {
|
|
2554
|
+
this.#gui_path = gui_path;
|
|
2555
|
+
this.#gui_bundleName = gui_bundleName;
|
|
2556
|
+
console.log('GUI资源配置', this.#gui_path, this.#gui_bundleName);
|
|
2557
2557
|
return this;
|
|
2558
2558
|
};
|
|
2559
2559
|
/**启动 */
|
|
@@ -2563,7 +2563,7 @@ class Manager {
|
|
|
2563
2563
|
this.storage = new StorageManager(this);
|
|
2564
2564
|
this.event = new MessageManager();
|
|
2565
2565
|
this.audio = new AudioManager(this);
|
|
2566
|
-
this.gui = (await (new GuiManager(this)).init(this.#
|
|
2566
|
+
this.gui = (await (new GuiManager(this)).init(this.#gui_bundleName, this.#gui_path)).gui;
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
2569
|
const cat = Manager.instance;
|