HarvestData.ts 660 B

123456789101112131415161718192021222324252627
  1. /**收获界面数据类 */
  2. import { Data } from "../../../mk/data/Data";
  3. const { ccclass } = cc._decorator;
  4. @ccclass
  5. export default class HarvestData extends Data {
  6. configID = null;
  7. plantID = null;
  8. config = null;
  9. call = null;
  10. init_reward = false;
  11. openPanel(configID, plantID, call) {
  12. this.configID = configID;
  13. this.plantID = plantID;
  14. this.call = call;
  15. this.config = gData.gameData.getProductMap(this.plantID);
  16. mk.ui.openPanel('game/prefab/uiPanel/HarvestPanel');
  17. }
  18. setAdData(data) {
  19. super.setAdData(data);
  20. this.init_reward = true;
  21. }
  22. }