fix: 未知原因报错

This commit is contained in:
unanmed 2025-01-19 03:08:26 +08:00
parent e0c79e06bb
commit d60252dca5
2 changed files with 2 additions and 6 deletions

View File

@ -1,3 +1,5 @@
// todo: 这个引入不加会报错,应该是循环引用导致的
import '@/plugin/utils';
import { Focus, GameUi, UiController } from './main/custom/ui';
import { GameStorage } from './main/storage';
import './main/init/';

View File

@ -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<boolean>;
// 定义于游戏进程,渲染进程依然可用