FObject.ts 396 B

123456789101112131415161718192021222324
  1. import FMap from "../map/FMap";
  2. import FF from "../FF";
  3. /**
  4. * 精灵基类
  5. */
  6. const {ccclass, property} = cc._decorator;
  7. /**
  8. * 阵营类型
  9. */
  10. export const GroupType = cc.Enum({
  11. N: 'map',//第三方
  12. A: 'A',//己方
  13. B: 'B',//敌方
  14. });
  15. @ccclass
  16. export default class FObject extends cc.Component {
  17. @property
  18. id:number = 0;//编号
  19. public ff:FF
  20. public map:FMap;
  21. }