| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | ItemLogicUtility.Instance.RequestWarehouseData();
|
| | | ItemOperateUtility.Instance.RequestWarehouseData();
|
| | | SetPlayerAttrActiveRedPoint();
|
| | | EquipDecomRedCtrl();
|
| | | RoleEquipLocalSave = StringUtility.Contact("RoleEquipLocalSave", PlayerDatas.Instance.baseData.PlayerID);
|
| | |
| | | itemInfo.UserData = packInfo.ItemInfo[i].UserData;
|
| | | itemInfo.IsLocked = packInfo.ItemInfo[i].IsLocked;
|
| | | itemInfo.ItemGUID = packInfo.ItemInfo[i].ItemGUID;
|
| | | playerPackDict[type].SetPackModel(itemInfo);
|
| | | playerPackDict[type].UpdateItem(itemInfo);
|
| | |
|
| | | if (isPlayBetterEquipEffect)
|
| | | {
|
| | |
| | | itemInfo.UserData = item.UserData;
|
| | | itemInfo.IsLocked = item.IsLocked;
|
| | | itemInfo.ItemGUID = item.ItemGUID;
|
| | | playerPackDict[type].SetPackModel(itemInfo);
|
| | | playerPackDict[type].UpdateItem(itemInfo);
|
| | |
|
| | | DebugEx.Log("Add:" + item.ItemGUID);
|
| | | if (RefreshItemCountAct != null)
|
| | |
| | | playerPackDict.TryGetValue(type, out singlePack);
|
| | | if (singlePack != null)
|
| | | {
|
| | | ItemModel itemModel = singlePack.GetItemModelByIndex(refresh.ItemIndex);
|
| | | ItemModel itemModel = singlePack.GetItemByIndex(refresh.ItemIndex);
|
| | | if (itemModel != null)
|
| | | {
|
| | | bool isAddItemCount = false;
|
| | |
| | | string guid = "";
|
| | | if (singlePack != null)
|
| | | {
|
| | | ItemModel itemModel = singlePack.GetItemModelByIndex(clearItem.ItemIndex);
|
| | | ItemModel itemModel = singlePack.GetItemByIndex(clearItem.ItemIndex);
|
| | | guid = itemModel.guid;
|
| | | int itemId = itemModel.itemId;
|
| | | DeleteItemDictByGUID(type, itemModel.guid);
|
| | |
| | | ItemModel itemModel = null;
|
| | | if (playerPackDict.ContainsKey(type))
|
| | | {
|
| | | itemModel = playerPackDict[type].GetItemModelByIndex(index);
|
| | | itemModel = playerPackDict[type].GetItemByIndex(index);
|
| | | }
|
| | | return itemModel;
|
| | | }
|
| | |
| | | SinglePackModel singlePack = GetSinglePackModel(PackType.Equip);
|
| | | if (singlePack == null || starslist == null || starslist.Count < 1) return false;
|
| | |
|
| | | Dictionary<int, ItemModel> _itemDict = singlePack.GetPackModelIndexDict();
|
| | | Dictionary<int, ItemModel> _itemDict = singlePack.GetAllItems();
|
| | | int playerSumStars = 0;
|
| | | foreach (var model in _itemDict.Values)
|
| | | {
|
| | |
| | |
|
| | | devourModellist.Clear();
|
| | | orderDevourModellist.Clear();
|
| | | foreach (var model in singlePack.GetPackModelIndexDict().Values)
|
| | | foreach (var model in singlePack.GetAllItems().Values)
|
| | | {
|
| | | if (model.config.Type == 29)
|
| | | {
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | foreach (var model in singlePack.GetPackModelIndexDict().Values)
|
| | | foreach (var model in singlePack.GetAllItems().Values)
|
| | | {
|
| | | if (model.config.Type == 29)
|
| | | {
|