refactor: 加载系统

This commit is contained in:
AncTe committed 2026-09-18 20:30:40 +08:00
1 parent d3598e9e27
commit f5a6ed8cf6
16 files changed
+430 -145

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ export class ClientCore extends CoreState implements IClientCore {
readonly bgmPlayer: IBGMPlayer<BgmIds>;
constructor() {
super();
super({});
//#region Layer 4
@@ -74,6 +74,7 @@ export const LoadScene = defineComponent<ILoadProps>(props => {
loader.load().then(() => {
loadEnd();
});
// @ts-expect-error 需要重构
for await (const _ of loader.progress) {
taskProgress.set(loader.progress.getLoadedTasks());
byteProgress.set(loader.progress.getLoadedByte());