战斗管理系统基础

This commit is contained in:
2025-02-03 22:02:26 +08:00
parent 060046a6a6
commit 36a8aff783
27 changed files with 375 additions and 619 deletions

View File

@@ -0,0 +1,13 @@
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
/** 战斗管理组件 */
@ecs.register('BattleManager')
export class BattleManagerComp extends ecs.Comp {
/** 单例实例 */
static instance: ecs.Entity;
reset() {
BattleManagerComp.instance = this.ent;
}
}