예제 #1
0
        // Token: 0x0600FBB8 RID: 64440 RVA: 0x00423060 File Offset: 0x00421260
        private void EquipmentDepotUIController_OnEquipmentLockAndUnLock(ulong instanceId, int slot)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_EquipmentDepotUIController_OnEquipmentLockAndUnLockUInt64Int32_hotfix != null)
            {
                this.m_EquipmentDepotUIController_OnEquipmentLockAndUnLockUInt64Int32_hotfix.call(new object[]
                {
                    this,
                    instanceId2,
                    slot2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int   slot       = slot2;
            ulong instanceId = instanceId2;
            EquipmentDepotUITask          $this = this;
            EquipmentLockAndUnLockNetTask equipmentLockAndUnLockNetTask = new EquipmentLockAndUnLockNetTask(instanceId);

            equipmentLockAndUnLockNetTask.EventOnStop += delegate(Task task)
            {
                EquipmentLockAndUnLockNetTask equipmentLockAndUnLockNetTask2 = task as EquipmentLockAndUnLockNetTask;
                if (equipmentLockAndUnLockNetTask2.Result == 0)
                {
                    $this.m_state      = 0;
                    $this.m_slot       = slot;
                    $this.m_instanceId = instanceId;
                    $this.UpdateView();
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(equipmentLockAndUnLockNetTask2.Result, 2f, null, true);
                }
            };
            equipmentLockAndUnLockNetTask.Start(null);
        }
예제 #2
0
        // Token: 0x0600FBB9 RID: 64441 RVA: 0x00423124 File Offset: 0x00421324
        private void EquipmentDepotUIController_OnEquipmentTakeOff(int heroId, int slot, Action OnEnd)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_EquipmentDepotUIController_OnEquipmentTakeOffInt32Int32Action_hotfix != null)
            {
                this.m_EquipmentDepotUIController_OnEquipmentTakeOffInt32Int32Action_hotfix.call(new object[]
                {
                    this,
                    heroId,
                    slot,
                    OnEnd2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            Action OnEnd = OnEnd2;
            EquipmentDepotUITask    $this = this;
            EquipmentTakeOffNetTask equipmentTakeOffNetTask = new EquipmentTakeOffNetTask(heroId, slot);

            equipmentTakeOffNetTask.EventOnStop += delegate(Task task)
            {
                EquipmentTakeOffNetTask equipmentTakeOffNetTask2 = task as EquipmentTakeOffNetTask;
                if (equipmentTakeOffNetTask2.Result == 0)
                {
                    if (OnEnd != null)
                    {
                        OnEnd();
                    }
                    else
                    {
                        $this.EquipmentDepotUIController_OnReturn();
                    }
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(equipmentTakeOffNetTask2.Result, 2f, null, true);
                }
            };
            equipmentTakeOffNetTask.Start(null);
        }
예제 #3
0
 // Token: 0x0600FBDA RID: 64474 RVA: 0x00423704 File Offset: 0x00421904
 public LuaExportHelper(EquipmentDepotUITask owner)
 {
     this.m_owner = owner;
 }