From d60252dca5cda72bbabb0f355f56b36244f997fe Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 19 Jan 2025 03:08:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E7=9F=A5=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/index.ts | 2 ++ src/game/system.ts | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) 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; // 定义于游戏进程,渲染进程依然可用