修改插件加载机制

This commit is contained in:
AncTe committed 2023-08-01 12:22:05 +08:00
1 parent 0604c56e98
commit d2746c4dc5
43 files changed
+527 -490

No files matched your search

+1 -2
View File
@@ -1,5 +1,4 @@
import resource from '../../data/resource.json';
import { has } from '../../plugin/utils';
import { EmitableEvent, EventEmitter } from '../common/eventEmitter';
import { Resource, getTypeByResource } from './resource';
@@ -118,7 +117,7 @@ export const loading = new GameLoading();
declare global {
interface Main {
loading: EventEmitter<GameLoadEvent>;
loading: GameLoading;
}
}
main.loading = loading;