| | |
| | | {
|
| | | public List<FunctionForecastConfig> FunctionList = new List<FunctionForecastConfig>();
|
| | | public Dictionary<int, ImpactRankModel.RankAwardItem> DicAwardItem = new Dictionary<int, ImpactRankModel.RankAwardItem>();//奖励物品
|
| | | public Dictionary<int, OpenFuncState> DicOpenFuncState = new Dictionary<int, OpenFuncState>();
|
| | | public event Action UpdateAwarfItem;
|
| | | private const int Redpoint_key1 = 38;
|
| | | public Redpoint redPointStre1 = new Redpoint(Redpoint_key1);
|
| | | private int OpenFuncId = 0;
|
| | |
| | | var _jsonData = LitJson.JsonMapper.ToObject(functionForecastConfig.Award);
|
| | | foreach (string _key in _jsonData.Keys)
|
| | | {
|
| | | var _job = int.Parse(key);
|
| | | var _job = int.Parse(_key);
|
| | | var _itemArray = LitJson.JsonMapper.ToObject<int[][]>(_jsonData[_key].ToJson());
|
| | | for (int j = 0; j < _itemArray.Length; j++)
|
| | | {
|
| | |
| | | }
|
| | | return lv;
|
| | | }
|
| | | |
| | | public class OpenFuncState
|
| | | {
|
| | | public int State;
|
| | | public int AwardState;
|
| | |
|
| | | }
|
| | |
|
| | | public void OpenFuncAwardState(HA302_tagMCFuncOpenStateList info)
|
| | | {
|
| | | for (int i = 0; i < info.FuncCount; i++)
|
| | | {
|
| | | int FuncID = info.FuncStateList[i].FuncID;
|
| | | if (!DicOpenFuncState.ContainsKey(FuncID))
|
| | | {
|
| | | OpenFuncState openFuncState = new OpenFuncState();
|
| | | openFuncState.State = info.FuncStateList[i].State;
|
| | | openFuncState.AwardState = info.FuncStateList[i].State;
|
| | | DicOpenFuncState.Add(FuncID, openFuncState);
|
| | | }
|
| | | else
|
| | | {
|
| | | DicOpenFuncState[FuncID].State= info.FuncStateList[i].State;
|
| | | DicOpenFuncState[FuncID].AwardState = info.FuncStateList[i].State;
|
| | | }
|
| | | }
|
| | | if (UpdateAwarfItem != null)
|
| | | {
|
| | | UpdateAwarfItem();
|
| | | }
|
| | | }
|
| | |
|
| | | } |
| | | |
| | | |