战斗管理系统基础

This commit is contained in:
walkpan
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,17 @@
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { BattleStateComp } from "./BattleStateComp";
import { BattleManagerComp } from "./BattleManagerComp";
/** 战斗实体 */
export class BattleEntity extends ecs.Entity {
BattleState!: BattleStateComp;
BattleManager!: BattleManagerComp;
constructor() {
super();
}
protected init() {
this.addComponents<ecs.Comp>(BattleStateComp, BattleManagerComp);
}
}