diff --git a/src/core/index.ts b/src/core/index.ts index feb6a4e..9ba6ead 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,3 +1,5 @@ +// todo: 这个引入不加会报错,应该是循环引用导致的 +import '@/plugin/utils'; import { Focus, GameUi, UiController } from './main/custom/ui'; import { GameStorage } from './main/storage'; import './main/init/'; diff --git a/src/game/system.ts b/src/game/system.ts index d060fa5..295359f 100644 --- a/src/game/system.ts +++ b/src/game/system.ts @@ -1,5 +1,3 @@ -import type { AudioPlayer } from '@/core/audio/audio'; -import type { SoundController, SoundEffect } from '@/core/audio/sound'; import type { Disposable } from '@/core/common/disposable'; import type { EventEmitter, @@ -57,9 +55,6 @@ interface ClassInterface { Hotkey: typeof Hotkey; Keyboard: typeof Keyboard; CustomToolbar: typeof CustomToolbar; - AudioPlayer: typeof AudioPlayer; - SoundEffect: typeof SoundEffect; - SoundController: typeof SoundController; Danmaku: typeof Danmaku; // todo: 放到插件 ShaderEffect: typeof ShaderEffect; // 定义于游戏进程,渲染进程依然可用 @@ -90,7 +85,6 @@ interface VariableInterface { fixedUi: UiController; KeyCode: typeof KeyCode; // isMobile: boolean; - sound: SoundController; settingStorage: GameStorage; status: Ref; // 定义于游戏进程,渲染进程依然可用