Esempio n. 1
0
        private void OnAccept(GameObject go)
        {
            GameManager instance = MonoSingleton <GameManager> .Instance;
            PlayerData  player   = instance.Player;
            int         abilityRankUpCountCoin = (int)MonoSingleton <GameManager> .Instance.MasterParam.FixParam.AbilityRankUpCountCoin;

            if (player.Coin < abilityRankUpCountCoin)
            {
                instance.ConfirmBuyCoin((GameManager.BuyCoinEvent)null, (GameManager.BuyCoinEvent)null);
            }
            else
            {
                instance.OnAbilityRankUpCountPreReset(0);
                if (Network.Mode == Network.EConnectMode.Offline)
                {
                    player.DEBUG_CONSUME_COIN(abilityRankUpCountCoin);
                    player.RestoreAbilityRankUpCount();
                    this.Success();
                }
                else
                {
                    Network.RequestAPI((WebAPI) new ReqItemAbilPointPaid(new Network.ResponseCallback(this.OnRequestResult)), false);
                }
            }
        }
Esempio n. 2
0
        public void Activated(int pinID)
        {
            if (pinID == 0)
            {
                switch (GlobalVars.SelectionCoinListType)
                {
                case GlobalVars.CoinListSelectionType.EventShop:
                    if (UnityEngine.Object.op_Inequality((UnityEngine.Object)GlobalVars.SelectionEventShop, (UnityEngine.Object)null))
                    {
                        GlobalVars.EventShopItem = GlobalVars.SelectionEventShop.EventShopInfo;
                        GlobalVars.ShopType      = EShopType.Event;
                        Network.RequestAPI((WebAPI) new ReqGetCoinNum(new Network.ResponseCallback(this.ResponseCallback)), false);
                        break;
                    }
                    break;

                case GlobalVars.CoinListSelectionType.ArenaShop:
                    FlowNode_GameObject.ActivateOutputLinks((Component)this, 103);
                    break;

                case GlobalVars.CoinListSelectionType.MultiShop:
                    FlowNode_GameObject.ActivateOutputLinks((Component)this, 104);
                    break;
                }
            }
            if (pinID != 1)
            {
                return;
            }
            GameParameter.UpdateAll(((Component)this).get_gameObject());
        }
Esempio n. 3
0
        private void RequestJobChange(bool immediate)
        {
            if (this.mRequestSent)
            {
                return;
            }
            PlayerPartyTypes dataOfClass = DataSource.FindDataOfClass <PlayerPartyTypes>(((Component)this).get_gameObject(), PlayerPartyTypes.Max);

            this.mRequestSent = true;
            if ((this.mTargetUnit.TempFlags & UnitData.TemporaryFlags.TemporaryUnitData) != (UnitData.TemporaryFlags) 0)
            {
                MonoSingleton <GameManager> .Instance.Player.FindUnitDataByUniqueID(this.mTargetUnit.UniqueID).SetJobFor(dataOfClass, this.mTargetUnit.CurrentJob);
            }
            UnitJobDropdown.OnJobChange(this.mTargetUnit.UniqueID);
            ReqUnitJob reqUnitJob = (this.mTargetUnit.TempFlags & UnitData.TemporaryFlags.TemporaryUnitData) != (UnitData.TemporaryFlags) 0 ? new ReqUnitJob(this.mTargetUnit.UniqueID, this.mTargetUnit.CurrentJob.UniqueID, PartyData.GetStringFromPartyType(dataOfClass), new Network.ResponseCallback(this.JobChangeResult)) : new ReqUnitJob(this.mTargetUnit.UniqueID, this.mTargetUnit.CurrentJob.UniqueID, new Network.ResponseCallback(this.JobChangeResult));

            if (immediate)
            {
                int num = (int)Network.RequestAPIImmediate((WebAPI)reqUnitJob, true);
            }
            else
            {
                Network.RequestAPI((WebAPI)reqUnitJob, false);
            }
        }
 private void Refresh()
 {
     if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.ListItem, (UnityEngine.Object)null))
     {
         return;
     }
     this.ClearItems();
     ((Component)this.ListItem).get_gameObject().SetActive(false);
     this.mAPIType = RankMatchMissionWindow.APIType.MISSION;
     Network.RequestAPI((WebAPI) new ReqRankMatchMission(new Network.ResponseCallback(this.ResponseCallback)), false);
 }
Esempio n. 5
0
        private void OnSelectItem(GameObject go)
        {
            EventShopListItem component = (EventShopListItem)go.GetComponent <EventShopListItem>();

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)component, (UnityEngine.Object)null))
            {
                return;
            }
            GlobalVars.EventShopItem = component.EventShopInfo;
            GlobalVars.ShopType      = EShopType.Event;
            Network.RequestAPI((WebAPI) new ReqGetCoinNum(new Network.ResponseCallback(this.ResponseCallback)), false);
        }
Esempio n. 6
0
        private void OnSlotAbilitySelect(AbilityData ability, GameObject itemGO)
        {
            int abilitySlot = this.mAbilityPicker.AbilitySlot;

            ((WindowController)((Component)this.mAbilityPicker).GetComponent <WindowController>()).Close();
            this.mCurrentUnit.SetEquipAbility(this.mCurrentUnit.JobIndex, abilitySlot, ability == null ? 0L : ability.UniqueID);
            MonoSingleton <GameManager> .Instance.Player.OnChangeAbilitySet(this.mCurrentUnit.UnitID);

            this.unitAbilityList.DisplaySlots();
            this.mIsConnecting = true;
            Network.RequestAPI((WebAPI) new ReqJobAbility(this.mCurrentUnit.CurrentJob.UniqueID, this.mCurrentUnit.CurrentJob.AbilitySlots, new Network.ResponseCallback(this.Res_UpdateEquippedAbility)), false);
        }
Esempio n. 7
0
 protected override void Start()
 {
     base.Start();
     if (Object.op_Inequality((Object)this.PlayerGO, (Object)null))
     {
         DataSource.Bind <PlayerData>(this.PlayerGO, MonoSingleton <GameManager> .Instance.Player);
     }
     if (Object.op_Equality((Object)this.ListItem, (Object)null))
     {
         return;
     }
     this.ClearItems();
     ((Component)this.ListItem).get_gameObject().SetActive(false);
     Network.RequestAPI((WebAPI) new ReqRankMatchHistory(new Network.ResponseCallback(this.ResponseCallback)), false);
 }
Esempio n. 8
0
        private void OnDecide(int value)
        {
            GameManager instance = MonoSingleton <GameManager> .Instance;

            if (instance.Player.Coin < (int)instance.MasterParam.FixParam.AbilityRankupPointCoinRate * value)
            {
                instance.ConfirmBuyCoin((GameManager.BuyCoinEvent)null, (GameManager.BuyCoinEvent)null);
            }
            else
            {
                instance.OnAbilityRankUpCountPreReset(0);
                this.UseCoin = value;
                Network.RequestAPI((WebAPI) new ReqItemAbilPointPaid(value, new Network.ResponseCallback(this.OnRequestResult)), false);
            }
        }
Esempio n. 9
0
 protected override void Start()
 {
     base.Start();
     if (Object.op_Inequality((Object)this.PlayerUnit, (Object)null) && Object.op_Inequality((Object)this.PlayerGO, (Object)null))
     {
         PlayerData player = MonoSingleton <GameManager> .Instance.Player;
         DataSource.Bind <PlayerData>(this.PlayerGO, player);
         DataSource.Bind <UnitData>(this.PlayerUnit, player.FindUnitDataByUniqueID((long)GlobalVars.SelectedSupportUnitUniqueID));
         GameParameter.UpdateAll(this.PlayerUnit);
     }
     if (Object.op_Equality((Object)this.ListItem, (Object)null))
     {
         return;
     }
     this.ClearItems();
     ((Component)this.ListItem).get_gameObject().SetActive(false);
     Network.RequestAPI((WebAPI) new ReqRankMatchRanking(new Network.ResponseCallback(this.ResponseCallback)), false);
 }
Esempio n. 10
0
        private void RequestItems()
        {
            this.mRecentPages[this.mCurrentTabType] = this.mCurrentPage;
            this.mItems = this.mAllItems.Skip <ItemParam>(this.mCurrentPage * this.mCellCount).Take <ItemParam>(this.mCellCount).ToList <ItemParam>();
            if (this.mItems.Count <= 0)
            {
                this.RefreshPage((HashSet <string>)null);
            }
            int num;

            if (this.mLoadCompletedPage.TryGetValue(this.mCurrentTabType, out num) && this.mCurrentPage <= num)
            {
                this.RefreshPage(this.mItemAvailable);
            }
            else
            {
                Network.RequestAPI((WebAPI) new ReqGalleryItem(this.mItems, new Network.ResponseCallback(this.ResponseCallback)), false);
            }
        }
 public override void OnActivate(int pinID)
 {
     if (pinID != 0)
     {
         return;
     }
     this.mStateMachine = new StateMachine <FlowNode_DebugReqReset>(this);
     if (Network.Mode == Network.EConnectMode.Online)
     {
         Network.RequestAPI((WebAPI) new ReqDebugDataReset(new Network.ResponseCallback(this.ResDebugDataReset)), false);
         this.mStateMachine.GotoState <FlowNode_DebugReqReset.State_WaitForConnect>();
         ((Behaviour)this).set_enabled(true);
     }
     else
     {
         ((Behaviour)this).set_enabled(false);
         this.ActivateOutputLinks(1);
     }
 }
Esempio n. 12
0
        public void Activated(int pinID)
        {
            switch (pinID)
            {
            case 1:
                PlayerPrefsUtility.SetInt(PlayerPrefsUtility.BEGINNER_TOP_HAS_VISITED, 1, false);
                Network.RequestAPI((WebAPI) new ReqGetTipsAlreadyRead(new Network.ResponseCallback(this.ResponseCallback)), false);
                break;

            case 2:
                this.Refresh();
                break;

            case 3:
                this.ChangeTab(BeginnerTop.TabType.Basic, false);
                break;

            case 4:
                this.ChangeTab(BeginnerTop.TabType.Practice, false);
                break;

            case 5:
                this.ChangeTab(BeginnerTop.TabType.Banners, false);
                break;

            case 10:
                this.OnSelectBasic();
                break;

            case 11:
                this.OnSelectPractice();
                break;

            case 12:
                this.OnSelectBanner();
                break;

            case 100:
                GlobalVars.RestoreBeginnerQuest = false;
                break;
            }
        }
Esempio n. 13
0
 public override void Begin(HomeWindow self)
 {
     TrophyState[] trophyStates = MonoSingleton <GameManager> .Instance.Player.TrophyStates;
     this.mDirtyList = new List <TrophyState>(trophyStates.Length);
     for (int index = 0; index < trophyStates.Length; ++index)
     {
         if (!trophyStates[index].Param.IsChallengeMission && trophyStates[index].IsDirty)
         {
             this.mDirtyList.Add(trophyStates[index]);
         }
     }
     if (this.mDirtyList.Count > 0)
     {
         Network.RequestAPI((WebAPI) new ReqUpdateTrophy(this.mDirtyList, new Network.ResponseCallback(this.ResponseCallback), false), false);
     }
     else
     {
         self.mStateMachine.GotoState <HomeWindow.State_UpdateChallengeMission>();
     }
 }
        public void ReceiveReward(VersusRankMissionParam mission)
        {
            GameManager gm = MonoSingleton <GameManager> .Instance;

            gm.Player.RewardedRankMatchMission(mission.IName);
            RewardData param = new RewardData();

            gm.GetVersusRankClassRewardList(mission.RewardId).ForEach((Action <VersusRankReward>)(reward =>
            {
                switch (reward.Type)
                {
                case RewardType.Item:
                    ItemParam itemParam = gm.GetItemParam(reward.IName);
                    if (itemParam == null)
                    {
                        break;
                    }
                    ItemData itemData = new ItemData();
                    if (!itemData.Setup(0L, itemParam.iname, reward.Num))
                    {
                        break;
                    }
                    param.Items.Add(itemData);
                    break;

                case RewardType.Gold:
                    param.Gold = reward.Num;
                    break;

                case RewardType.Coin:
                    param.Coin = reward.Num;
                    break;

                case RewardType.Artifact:
                    ArtifactParam artifactParam = gm.MasterParam.GetArtifactParam(reward.IName);
                    if (artifactParam == null)
                    {
                        break;
                    }
                    param.Artifacts.Add(new ArtifactRewardData()
                    {
                        ArtifactParam = artifactParam,
                        Num           = 1
                    });
                    break;

                case RewardType.Unit:
                    if (gm.GetUnitParam(reward.IName) == null)
                    {
                        break;
                    }
                    param.GiftRecieveItemDataDic.Add(reward.IName, new GiftRecieveItemData()
                    {
                        iname = reward.IName,
                        num   = 1,
                        type  = GiftTypes.Unit
                    });
                    break;
                }
            }));
            GlobalVars.LastReward.Set(param);
            this.mAPIType = RankMatchMissionWindow.APIType.MISSION_EXEC;
            Network.RequestAPI((WebAPI) new ReqRankMatchMissionExec(mission.IName, new Network.ResponseCallback(this.ResponseCallback)), false);
        }
Esempio n. 15
0
        private void OnSelect(ArtifactData artifact, ArtifactTypes type = ArtifactTypes.None)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            ArtifactSlots.\u003COnSelect\u003Ec__AnonStorey2FC selectCAnonStorey2Fc = new ArtifactSlots.\u003COnSelect\u003Ec__AnonStorey2FC();
            if (artifact != null)
            {
                PlayerData player = MonoSingleton <GameManager> .GetInstanceDirect().Player;

                UnitData unit = (UnitData)null;
                JobData  job  = (JobData)null;
                if (player.FindOwner(artifact, out unit, out job))
                {
                    for (int slot = 0; slot < job.Artifacts.Length; ++slot)
                    {
                        if (job.Artifacts[slot] == (long)artifact.UniqueID)
                        {
                            job.SetEquipArtifact(slot, (ArtifactData)null);
                            break;
                        }
                    }
                }
            }
            // ISSUE: reference to a compiler-generated field
            selectCAnonStorey2Fc.view_artifact_datas = new List <ArtifactData>()
            {
                DataSource.FindDataOfClass <ArtifactData>(((Component)this.ArtifactSlot).get_gameObject(), (ArtifactData)null),
                DataSource.FindDataOfClass <ArtifactData>(((Component)this.ArtifactSlot2).get_gameObject(), (ArtifactData)null),
                DataSource.FindDataOfClass <ArtifactData>(((Component)this.ArtifactSlot3).get_gameObject(), (ArtifactData)null)
            }.ToArray();
            int artifactSlotIndex = JobData.GetArtifactSlotIndex(type);
            List <ArtifactData> artifactDataList1 = new List <ArtifactData>((IEnumerable <ArtifactData>) this.mCurrentUnit.CurrentJob.ArtifactDatas);

            // ISSUE: reference to a compiler-generated field
            if (artifactDataList1.Count != selectCAnonStorey2Fc.view_artifact_datas.Length)
            {
                return;
            }
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            ArtifactSlots.\u003COnSelect\u003Ec__AnonStorey2FD selectCAnonStorey2Fd = new ArtifactSlots.\u003COnSelect\u003Ec__AnonStorey2FD();
            // ISSUE: reference to a compiler-generated field
            selectCAnonStorey2Fd.\u003C\u003Ef__ref\u0024764 = selectCAnonStorey2Fc;
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            for (selectCAnonStorey2Fd.i = 0; selectCAnonStorey2Fd.i < selectCAnonStorey2Fc.view_artifact_datas.Length; ++selectCAnonStorey2Fd.i)
            {
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated method
                if (selectCAnonStorey2Fc.view_artifact_datas[selectCAnonStorey2Fd.i] != null && artifactDataList1.Find(new Predicate <ArtifactData>(selectCAnonStorey2Fd.\u003C\u003Em__30A)) == null)
                {
                    return;
                }
            }
            // ISSUE: reference to a compiler-generated field
            selectCAnonStorey2Fc.view_artifact_datas[artifactSlotIndex] = artifact;
            List <ArtifactData> artifactDataList2 = new List <ArtifactData>();

            for (int slot = 0; slot < this.mCurrentUnit.CurrentJob.ArtifactDatas.Length; ++slot)
            {
                this.mCurrentUnit.CurrentJob.SetEquipArtifact(slot, (ArtifactData)null);
            }
            // ISSUE: reference to a compiler-generated field
            for (int index = 0; index < selectCAnonStorey2Fc.view_artifact_datas.Length; ++index)
            {
                // ISSUE: reference to a compiler-generated field
                if (selectCAnonStorey2Fc.view_artifact_datas[index] != null)
                {
                    // ISSUE: reference to a compiler-generated field
                    if (selectCAnonStorey2Fc.view_artifact_datas[index].ArtifactParam.type == ArtifactTypes.Accessory)
                    {
                        // ISSUE: reference to a compiler-generated field
                        artifactDataList2.Add(selectCAnonStorey2Fc.view_artifact_datas[index]);
                    }
                    else
                    {
                        // ISSUE: reference to a compiler-generated field
                        // ISSUE: reference to a compiler-generated field
                        this.mCurrentUnit.CurrentJob.SetEquipArtifact(JobData.GetArtifactSlotIndex(selectCAnonStorey2Fc.view_artifact_datas[index].ArtifactParam.type), selectCAnonStorey2Fc.view_artifact_datas[index]);
                    }
                }
            }
            for (int index = 0; index < artifactDataList2.Count; ++index)
            {
                for (int slot = 0; slot < this.mCurrentUnit.CurrentJob.ArtifactDatas.Length; ++slot)
                {
                    if (this.mCurrentUnit.CurrentJob.ArtifactDatas[slot] == null)
                    {
                        this.mCurrentUnit.CurrentJob.SetEquipArtifact(slot, artifactDataList2[index]);
                        break;
                    }
                }
            }
            this.mCurrentUnit.UpdateArtifact(this.mCurrentUnit.JobIndex, true);
            Network.RequestAPI((WebAPI) new ReqArtifactSet(this.mCurrentUnit.UniqueID, this.mCurrentUnit.CurrentJob.UniqueID, this.mCurrentUnit.CurrentJob.Artifacts, new Network.ResponseCallback(this.OnArtifactSetResult)), false);
        }
Esempio n. 16
0
 private void Connect()
 {
     Network.RequestAPI((WebAPI) new ReqBtlComRecord(this.mCurrentQuest.iname, this.mCurrentPage, this.mUnitId, new Network.ResponseCallback(this.ResponseCallback)), false);
 }
 private void ClearVersusResumeData()
 {
     BattleCore.RemoveSuspendData();
     Network.RequestAPI((WebAPI) new ReqVersusEnd((long)GlobalVars.BtlID, BtlResultTypes.Cancel, (string)null, (string)null, 0U, (int[])null, (int[])null, 0, 0, 0, 0, new Network.ResponseCallback(this.OnBtlComEnd), GlobalVars.SelectedMultiPlayVersusType, (string)null, (string)null), false);
     GlobalVars.BtlID.Set(0L);
 }
 private void ClearMultiResumeData()
 {
     BattleCore.RemoveSuspendData();
     Network.RequestAPI((WebAPI) new ReqBtlComEnd((long)GlobalVars.BtlID, 0, BtlResultTypes.Cancel, (int[])null, (int[])null, (int[])null, (int[])null, (string[])null, (Dictionary <OString, OInt>)null, new Network.ResponseCallback(this.OnBtlComEnd), BtlEndTypes.multi, (string)null, (string)null, 0, (string)null), false);
     GlobalVars.BtlID.Set(0L);
 }
Esempio n. 19
0
 public void ExecRequest(WebAPI api)
 {
     Network.RequestAPI(api, false);
     this.mStateMachine = new StateMachine <FlowNode_Network>(this);
     this.mStateMachine.GotoState <FlowNode_Network.State_WaitForConnect>();
 }
Esempio n. 20
0
 private void RequestQuestBookmark()
 {
     Network.RequestAPI((WebAPI) new ReqQuestBookmark(new Network.ResponseCallback(this.QuestBookmarkResponseCallback)), false);
 }
Esempio n. 21
0
        private void OnSelect(ArtifactData artifact, ArtifactTypes type = ArtifactTypes.None)
        {
            if (artifact != null)
            {
                PlayerData player = MonoSingleton <GameManager> .GetInstanceDirect().Player;

                UnitData unit = (UnitData)null;
                JobData  job1 = (JobData)null;
                if (player.FindOwner(artifact, out unit, out job1))
                {
                    for (int slot = 0; slot < job1.Artifacts.Length; ++slot)
                    {
                        if (job1.Artifacts[slot] == (long)artifact.UniqueID)
                        {
                            job1.SetEquipArtifact(slot, (ArtifactData)null);
                            break;
                        }
                    }
                    if (this.mCurrentUnit.UniqueID == unit.UniqueID)
                    {
                        JobData jobData = (JobData)null;
                        foreach (JobData job2 in this.mCurrentUnit.Jobs)
                        {
                            if (job2.UniqueID == job1.UniqueID)
                            {
                                jobData = job2;
                            }
                        }
                        if (jobData != null)
                        {
                            for (int slot = 0; slot < jobData.Artifacts.Length; ++slot)
                            {
                                if (jobData.Artifacts[slot] == (long)artifact.UniqueID)
                                {
                                    jobData.SetEquipArtifact(slot, (ArtifactData)null);
                                    break;
                                }
                            }
                        }
                    }
                }
            }
            ArtifactData[] view_artifact_datas = new List <ArtifactData>()
            {
                DataSource.FindDataOfClass <ArtifactData>(((Component)this.ArtifactSlot).get_gameObject(), (ArtifactData)null),
                DataSource.FindDataOfClass <ArtifactData>(((Component)this.ArtifactSlot2).get_gameObject(), (ArtifactData)null),
                DataSource.FindDataOfClass <ArtifactData>(((Component)this.ArtifactSlot3).get_gameObject(), (ArtifactData)null)
            }.ToArray();
            int artifactSlotIndex = JobData.GetArtifactSlotIndex(type);
            List <ArtifactData> artifactDataList1 = new List <ArtifactData>((IEnumerable <ArtifactData>) this.mCurrentUnit.CurrentJob.ArtifactDatas);

            if (artifactDataList1.Count != view_artifact_datas.Length)
            {
                return;
            }
            for (int i = 0; i < view_artifact_datas.Length; ++i)
            {
                if (view_artifact_datas[i] != null && artifactDataList1.Find((Predicate <ArtifactData>)(x =>
                {
                    if (x != null)
                    {
                        return((long)x.UniqueID == (long)view_artifact_datas[i].UniqueID);
                    }
                    return(false);
                })) == null)
                {
                    return;
                }
            }
            view_artifact_datas[artifactSlotIndex] = artifact;
            List <ArtifactData> artifactDataList2 = new List <ArtifactData>();

            for (int slot = 0; slot < this.mCurrentUnit.CurrentJob.ArtifactDatas.Length; ++slot)
            {
                this.mCurrentUnit.CurrentJob.SetEquipArtifact(slot, (ArtifactData)null);
            }
            for (int index = 0; index < view_artifact_datas.Length; ++index)
            {
                if (view_artifact_datas[index] != null)
                {
                    if (view_artifact_datas[index].ArtifactParam.type == ArtifactTypes.Accessory)
                    {
                        artifactDataList2.Add(view_artifact_datas[index]);
                    }
                    else
                    {
                        this.mCurrentUnit.CurrentJob.SetEquipArtifact(JobData.GetArtifactSlotIndex(view_artifact_datas[index].ArtifactParam.type), view_artifact_datas[index]);
                    }
                }
            }
            for (int index = 0; index < artifactDataList2.Count; ++index)
            {
                for (int slot = 0; slot < this.mCurrentUnit.CurrentJob.ArtifactDatas.Length; ++slot)
                {
                    if (this.mCurrentUnit.CurrentJob.ArtifactDatas[slot] == null)
                    {
                        this.mCurrentUnit.CurrentJob.SetEquipArtifact(slot, artifactDataList2[index]);
                        break;
                    }
                }
            }
            this.mCurrentUnit.UpdateArtifact(this.mCurrentUnit.JobIndex, true, true);
            Network.RequestAPI((WebAPI) new ReqArtifactSet(this.mCurrentUnit.UniqueID, this.mCurrentUnit.CurrentJob.UniqueID, this.mCurrentUnit.CurrentJob.Artifacts, new Network.ResponseCallback(this.OnArtifactSetResult)), false);
        }
 private void ClearMultiTowerResumeData()
 {
     BattleCore.RemoveSuspendData();
     Network.RequestAPI((WebAPI) new ReqBtlMultiTwEnd((long)GlobalVars.BtlID, 0, BtlResultTypes.Retire, (int[])null, (string[])null, (string[])null, new Network.ResponseCallback(this.OnBtlComEnd), (string)null, (string)null), false);
     GlobalVars.BtlID.Set(0L);
 }
 private void ClearTowerResumeData()
 {
     BattleCore.RemoveSuspendData();
     Network.RequestAPI((WebAPI) new ReqTowerBtlComEnd((long)GlobalVars.BtlID, (Unit[])null, (Unit[])null, 0, 0, (byte)0, BtlResultTypes.Cancel, (RandDeckResult[])null, new Network.ResponseCallback(this.OnBtlComEnd), (string)null, (string)null, (string)null), false);
     GlobalVars.BtlID.Set(0L);
 }
Esempio n. 24
0
 private void RequestQuestBookmarkUpdate(IEnumerable <string> add, IEnumerable <string> delete)
 {
     Network.RequestAPI((WebAPI) new ReqQuestBookmarkUpdate(add, delete, new Network.ResponseCallback(this.QuestBookmarkUpdateResponseCallback)), false);
 }