FarmMapData.ts 611 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @description 图鉴数据
  3. */
  4. import { Data } from "../../../mk/data/Data";
  5. import { ProductType } from "../GameData";
  6. export class FarmMapData extends Data {
  7. public chooseType: ProductType = ProductType.nzw;
  8. public maxUnluckValue: any;
  9. public isStateChange: boolean = false;
  10. public init_award = false;
  11. init() {
  12. }
  13. setAdData(data) {
  14. super.setAdData(data);
  15. this.init_award = true;
  16. }
  17. setChooseType(t: ProductType) {
  18. this.chooseType = t;
  19. this.maxUnluckValue = gData.gameData.getMaxProduct(t);
  20. }
  21. }