| | |
| | | using UnityEngine;
|
| | |
|
| | |
|
| | | public class HappyXBModel : GameSystemManager<HappyXBModel>
|
| | | public partial class HappyXBModel : GameSystemManager<HappyXBModel>
|
| | | {
|
| | | //寻宝产出库
|
| | | private Dictionary<int, Dictionary<int, XBGetItemConfig>> xbGetItemDict = new Dictionary<int, Dictionary<int, XBGetItemConfig>>(); //奖池的所有物品(按类型+等级)
|
| | |
| | | int cnt = info.TreasuerInfoList[i].GridLimitCntList[j].GridCnt;
|
| | | typeInfo.gridLimitCntDict[num] = cnt;
|
| | | }
|
| | | if (typeInfo.wishCntDict == null)
|
| | | {
|
| | | typeInfo.wishCntDict = new Dictionary<int, int>();
|
| | | }
|
| | | typeInfo.wishCntDict.Clear();
|
| | | for (int j = 0; j < info.TreasuerInfoList[i].WishCnt; j++)
|
| | | {
|
| | | int num = info.TreasuerInfoList[i].WishList[j].WishID;
|
| | | int cnt = info.TreasuerInfoList[i].WishList[j].OutCnt;
|
| | | typeInfo.wishCntDict[num] = cnt;
|
| | | }
|
| | |
|
| | | xbTypeInfoDict.Add(info.TreasuerInfoList[i].TreasureType, typeInfo);
|
| | | }
|
| | | else
|
| | |
| | | int num = info.TreasuerInfoList[i].GridLimitCntList[j].GridNum;
|
| | | int cnt = info.TreasuerInfoList[i].GridLimitCntList[j].GridCnt;
|
| | | xbTypeInfoDict[info.TreasuerInfoList[i].TreasureType].gridLimitCntDict[num] = cnt;
|
| | | }
|
| | | |
| | | xbTypeInfoDict[info.TreasuerInfoList[i].TreasureType].wishCntDict.Clear();
|
| | | for (int j = 0; j < info.TreasuerInfoList[i].WishCnt; j++)
|
| | | {
|
| | | int num = info.TreasuerInfoList[i].WishList[j].WishID;
|
| | | int cnt = info.TreasuerInfoList[i].WishList[j].OutCnt;
|
| | | xbTypeInfoDict[info.TreasuerInfoList[i].TreasureType].wishCntDict[num] = cnt;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Hero))
|
| | | return;
|
| | |
|
| | | UpdateWishRedpoint();
|
| | |
|
| | | // 免费 10连 积分
|
| | | bestXB10Red.state = RedPointState.None;
|
| | | bestXBFreeRed.state = RedPointState.None;
|
| | |
| | | public int treasureCountToday; //今日已寻宝总次数
|
| | | public int treasureCntAward; //累计寻宝次数对应奖励领奖状态,按奖励记录索引二进制记录是否已领取
|
| | | public Dictionary<int, int> gridLimitCntDict; //<有限制抽取次数的格子编号,已抽到次数> 有限制抽取次数的格子次数信息
|
| | | public Dictionary<int, int> wishCntDict; //心愿抽取情况 <心愿ID,已抽到次数>
|
| | | }
|
| | |
|
| | |
|