- 删除多个文件中的 console.log/console.warn/console.error 调试输出 - 将日志输出统一替换为 mLogger 工具,支持调试模式控制 - 清理注释掉的调试代码和空方法体
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import { v3, Vec3, _decorator ,Prefab,instantiate,JsonAsset} from "cc";
|
|
import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
|
import { CCComp } from "../../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
|
import { smc } from "../../common/SingletonModuleComp";
|
|
import { BoxSet } from "../../common/config/GameSet";
|
|
import { MapViewScene } from "./MapViewScene";
|
|
import { Timer } from "../../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer";
|
|
import { oops } from "../../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('MapViewComp')
|
|
@ecs.register('MapView', false)
|
|
export class MapViewComp extends CCComp {
|
|
scene: MapViewScene = null!;
|
|
private game_timer: Timer = new Timer(1);
|
|
private mapLoaded() {
|
|
|
|
}
|
|
async onLoad(){
|
|
// 监听全局事件
|
|
}
|
|
|
|
|
|
reset(): void {
|
|
//撤销监听
|
|
// oops.message.off("do_add_hero", this.on_do_add_hero, this);
|
|
}
|
|
|
|
start() {
|
|
this.scene = this.getComponent(MapViewScene);
|
|
}
|
|
|
|
load_data(){
|
|
// let heros = oops.res.get("config/game/heros")
|
|
}
|
|
protected update(dt: number): void {
|
|
|
|
}
|
|
// 刷新怪物
|
|
|
|
|
|
|
|
}
|