feat: 分离小地图绘制

This commit is contained in:
AncTe committed 2024-04-21 14:39:58 +08:00
1 parent 1279dc9f8f
commit 0fa07e0605
7 files changed
+344 -263

No files matched your search

+8 -12
View File
@@ -33,21 +33,17 @@ class GameLoading extends EventEmitter<GameLoadEvent> {
}
addMaterialLoaded() {
this.once('coreInit', () => {
this.materialsLoaded++;
if (this.materialsLoaded === this.materialsNum) {
this.emit('materialLoaded');
}
});
this.materialsLoaded++;
if (this.materialsLoaded === this.materialsNum) {
this.emit('materialLoaded');
}
}
addAutotileLoaded() {
this.once('coreInit', () => {
this.autotileLoaded++;
if (this.autotileLoaded === this.autotileNum) {
this.emit('autotileLoaded');
}
});
this.autotileLoaded++;
if (this.autotileLoaded === this.autotileNum) {
this.emit('autotileLoaded');
}
}
/**