12345678910111213141516171819 |
- import { BattleBase } from "../base/BattleBase";
- import { BattleUtil } from "./BattleUtil";
- let IDIndex = 0;
- //数据基类
- export class DataBase extends BattleBase {
- //唯一ID,当重复利用对象池时 同一对象不同实物时ID不同
- ID: number = BattleUtil.IndexID_Init;
- typeID: number = BattleUtil.TypeID_Init;
-
- _init() {
- this.ID = IDIndex++;
- }
-
- clear() {
- this.ID = BattleUtil.IndexID_Init;
- }
- }
|