战斗管理系统基础
This commit is contained in:
17
assets/script/game/battle/BattleEntity.ts
Normal file
17
assets/script/game/battle/BattleEntity.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user