| | |
| | | public Treasure treasureData { get; private set; }
|
| | | public void RefreshTreasureRefineModel(HA3BE_tagMCMagicWeaponMsg data)
|
| | | {
|
| | | DebugEx.Log("RefreshTreasureRefineModel" + data.Count);
|
| | | if (data.Count > 0)
|
| | | {
|
| | | int i = 0;
|
| | | for (i = 0; i < data.Count; i++)
|
| | | {
|
| | | if (!treasureRefineDict.ContainsKey(data.MWInfo[i].MWID))
|
| | | {
|
| | | treasureRefineDict.Add(data.MWInfo[i].MWID, data.MWInfo[i].MWLV);
|
| | | }
|
| | | else
|
| | | {
|
| | | treasureRefineDict[data.MWInfo[i].MWID] = data.MWInfo[i].MWLV;
|
| | | }
|
| | | Treasure treasure = null;
|
| | | sTreasureModel.TryGetTreasure((int)data.MWInfo[i].MWID, out treasure);
|
| | | treasure.level = data.MWInfo[i].MWLV;
|
| | | treasureData = treasure;
|
| | | }
|
| | | if (RefreshTreasureRefineEvent != null)
|
| | | RefreshTreasureRefineEvent();
|
| | | }
|
| | | }
|
| | |
|
| | | public int GetAllTreasureRefineLv()
|