let uuid = 0; //战斗类基类 export class BattleBase { //对象id,重复利用时候是相同的 uuid: number; constructor() { this.uuid = uuid++; } }