@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 CHANGED
@@ -1013,9 +1013,9 @@ declare class Manager {
1013
1013
  /**工具类 */
1014
1014
  util: CoreUtil;
1015
1015
  /**GUI资源配置 */
1016
- setGuiConfig: ({ path, bundleName }?: {
1017
- path?: string;
1018
- bundleName?: string;
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
- #path = 'core';
2551
- #bundleName = 'resources';
2550
+ #gui_path = 'core';
2551
+ #gui_bundleName = 'resources';
2552
2552
  /**GUI资源配置 */
2553
- setGuiConfig = ({ path = 'core', bundleName = 'resources' } = {}) => {
2554
- this.#path = path;
2555
- this.#bundleName = bundleName;
2556
- console.log('GUI资源配置', this.#path, this.#bundleName);
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.#bundleName, this.#path)).gui;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shimotsuki/core",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",