Пример #1
0
 private void HandleEquipBreakUpCmd(CommandParser.Command param)
 {
     ulong item = 0uL;
     ulong.TryParse(param.GetParam(1), out item);
     MC2S_EquipBreakUp mC2S_EquipBreakUp = new MC2S_EquipBreakUp();
     mC2S_EquipBreakUp.EquipID.Add(item);
     Globals.Instance.CliSession.Send(530, mC2S_EquipBreakUp);
 }
Пример #2
0
 private void OnOKBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     GUISelectItemBagScene.ESelectItemSceneType curType = this.mBaseScene.curType;
     if (curType != GUISelectItemBagScene.ESelectItemSceneType.ESIST_TrinketEnhance)
     {
         if (curType == GUISelectItemBagScene.ESelectItemSceneType.ESIST_EquipBreak)
         {
             MC2S_EquipBreakUp mC2S_EquipBreakUp = new MC2S_EquipBreakUp();
             foreach (ItemDataEx current in this.mCurSelectItems)
             {
                 mC2S_EquipBreakUp.EquipID.Add(current.GetID());
                 current.ClearUIData();
             }
             GameUIManager.mInstance.uiState.EquipBreakUpData = mC2S_EquipBreakUp;
             mC2S_EquipBreakUp = null;
             GUIRecycleScene.Change2This(GUIRecycleScene.ERecycleT.ERecycleT_EquipBreak);
         }
     }
     else
     {
         MC2S_TrinketEnhance mC2S_TrinketEnhance = new MC2S_TrinketEnhance();
         mC2S_TrinketEnhance.TrinketID = this.mBaseScene.selfData.GetID();
         foreach (ItemDataEx current2 in this.mCurSelectItems)
         {
             mC2S_TrinketEnhance.ItemID.Add(current2.GetID());
             current2.ClearUIData();
         }
         GameUIManager.mInstance.uiState.TrinketEnhanceData = mC2S_TrinketEnhance;
         mC2S_TrinketEnhance = null;
         GUITrinketUpgradeScene.Change2This(this.mBaseScene.selfData, GUITrinketUpgradeScene.EUpgradeType.EUT_Enhance, -2);
     }
 }