| | |
| | | List<ItemModel> itemModels = GetRecycleDanlist();
|
| | | if (itemModels == null) return lookRecycleDict;
|
| | |
|
| | | itemModels.Sort(CompareByDanBindAndLv);
|
| | |
|
| | | for(int i = 0; i < itemModels.Count; i++)
|
| | | {
|
| | | string key = StringUtility.Contact(itemModels[i].itemId,"IsBind",itemModels[i].itemInfo.IsBind);
|
| | |
| | | return lookRecycleDict;
|
| | | }
|
| | |
|
| | | private int CompareByDanBindAndLv(ItemModel start,ItemModel end)
|
| | | {
|
| | | bool isBindStart = start.itemInfo.IsBind == 1 ? true : false;
|
| | | bool isBindEnd = end.itemInfo.IsBind == 1 ? true : false;
|
| | | if (isBindStart.CompareTo(isBindEnd) != 0) return -isBindStart.CompareTo(isBindEnd);
|
| | |
|
| | | int startLv = start.chinItemModel.LV;
|
| | | int endLv = end.chinItemModel.LV;
|
| | | if (startLv.CompareTo(endLv) != 0) return startLv.CompareTo(endLv);
|
| | |
|
| | | return 0;
|
| | | }
|
| | |
|
| | | Dictionary<int, int> recycleDanDict = new Dictionary<int, int>();
|
| | | public List<string> recycleStrlist = new List<string>();
|
| | | public event Action RefreshSelectRecycleAct;
|