This commit is contained in:
2024-08-03 23:54:37 +08:00
parent d5f2f65ee6
commit a81cde8e82
108 changed files with 7182 additions and 2487 deletions

View File

@@ -11,7 +11,7 @@ import { AsyncQueue, NextFunction } from "../../../../extensions/oops-plugin-fra
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { UIID } from "../common/config/GameUIConfig";
import { LoadingViewComp } from "./view/LoadingViewComp";
import {data} from "../data/data";
// import {data} from "../data/data";
/**
* 游戏进入初始化模块
* 1、热更新
@@ -20,11 +20,11 @@ import {data} from "../data/data";
@ecs.register(`Initialize`)
export class Initialize extends ecs.Entity {
LoadingView!: LoadingViewComp;
data:data=null!;
// data:data=null!;
protected init() {
this.data=ecs.getEntity<data>(data);
this.data.dataModel.vmAdd();
// this.data=ecs.getEntity<data>(data);
// this.data.dataModel.vmAdd();
var queue: AsyncQueue = new AsyncQueue();
// 加载自定义资
this.loadCustom(queue);

View File

@@ -46,6 +46,7 @@ export class LoadingViewComp extends CCVMParentComp {
var map = ecs.getEntity<GameMap>(GameMap);
map.load();
smc.map = map;
oops.gui.open(UIID.Role_Controller)
}
start() {