using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace vnxbqy.UI { public class OperationHolidayWish : OperationBase { //瓶子编号对应的信息 public Dictionary wishBottles = new Dictionary(); public List wishPool = new List(); //展示奖池物品ID public override bool SatisfyOpenCondition() { return PlayerDatas.Instance.baseData.LV >= limitLv; } public override string ToDisplayTime() { var textBuilder = OperationTimeHepler.textBuilder; textBuilder.Length = 0; textBuilder.Append(startDate.ToDisplay()); if (startDate != endDate) { textBuilder.Append("—"); textBuilder.Append(endDate.ToDisplay()); } return textBuilder.ToString(); } public override void Reset() { base.Reset(); } public void ParsePackage(HAA43_tagMCFeastWishInfo package) { wishPool.Clear(); for (int i = 0; i < package.WishPoolShowItemList.Length; i++) { wishPool.Add(package.WishPoolShowItemList[i]); } wishBottles.Clear(); for (int i = 0; i < package.BottleInfoList.Length; i++) { wishBottles.Add(package.BottleInfoList[i].BottleNum, package.BottleInfoList[i]); } } } }