mirror of
https://github.com/motajs/template.git
synced 2026-11-20 03:14:30 +08:00
refactor: Delete global loading & hook object
This commit is contained in:
1 parent
7c155be5ce
commit
d8fa4b8507
16 files changed
+33
-978
No files matched your search
@@ -11,9 +11,7 @@ import {
|
||||
import { IRenderTreeRoot, MotaRenderer } from '@motajs/render';
|
||||
import {
|
||||
ITextureManager,
|
||||
IAutotileProcessor,
|
||||
TextureManager,
|
||||
AutotileProcessor,
|
||||
ISaveSystem,
|
||||
SaveSystem
|
||||
} from '@user/client-base';
|
||||
@@ -38,8 +36,6 @@ import {
|
||||
MAIN_WIDTH,
|
||||
VARIATOR_DEBUG_SPEED
|
||||
} from './shared';
|
||||
import { loading } from '@user/data-base';
|
||||
import { fallbackLoad } from './fallback/load';
|
||||
import { WebLoadStarter } from '@motajs/loader';
|
||||
|
||||
export class ClientCore extends CoreState implements IClientCore {
|
||||
@@ -90,10 +86,10 @@ export class ClientCore extends CoreState implements IClientCore {
|
||||
//#endregion
|
||||
|
||||
// 兼容层
|
||||
loading.once('loaded', () => {
|
||||
fallbackLoad(this.materials);
|
||||
loading.emit('assetBuilt');
|
||||
});
|
||||
// loading.once('loaded', () => {
|
||||
// fallbackLoad(this.materials);
|
||||
// loading.emit('assetBuilt');
|
||||
// });
|
||||
|
||||
//#region 渲染系统
|
||||
|
||||
@@ -126,9 +122,9 @@ export class ClientCore extends CoreState implements IClientCore {
|
||||
this.mainMapExtension = new MapExtensionManager(this.mainMapRenderer);
|
||||
|
||||
// 兼容层
|
||||
loading.once('assetBuilt', () => {
|
||||
this.initMapExtensions();
|
||||
});
|
||||
// loading.once('assetBuilt', () => {
|
||||
// this.initMapExtensions();
|
||||
// });
|
||||
|
||||
//#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user