| 1234567891011121314151617181920 |
- /** 清除害虫数据类 */
- import { FarmState } from "../../../game/data/GameData";
- const { ccclass } = cc._decorator;
- @ccclass
- export default class ADClearSickData {
- curConfigID = -1;
- openPanel(id) {
- this.curConfigID = id;
- mk.ui.openPanel('game/prefab/uiPanel/ADClearSickPanel');
- }
- clearSick() {
- let farm = gData.gameData.getFarmDataMap(this.curConfigID);
- farm.state = FarmState.Ripe;
- gData.gameData.needFreshArr.push(this.curConfigID);
- }
- }
|