public static void SetBattleMonsterDetailed(this MonsterIcon self, MonsterUserData monster, int playerIndex)
        {
            MonsterClientMaster monsterMaster = monster.GetMonsterMaster();

            self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
            self.Arousal.SetArousal(monsterMaster.Simple.rare);
            self.PlayerNo.SetPlayerIndex(playerIndex);
        }
 public static void SetData(MonsterBasicInfo basicInfo, MonsterUserData monster)
 {
     if (monster.GetMonster().IsEgg())
     {
         basicInfo.SetEggData(StringMaster.GetString("CharaStatus-04"), monster.GetMonsterMaster().Simple.rare);
     }
     else
     {
         basicInfo.SetMonsterData(monster as MonsterData);
     }
 }
        public static void SetColosseumDeckMonsterDetailed(this MonsterIcon self, MonsterUserData monster)
        {
            MonsterClientMaster monsterMaster = monster.GetMonsterMaster();

            self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
            self.Arousal.SetArousal(monsterMaster.Simple.rare);
            if (monster.GetMonster().IsLocked)
            {
                self.Lock.SetLock();
            }
            else
            {
                self.Lock.SetUnlock();
            }
        }
        public void SetSelectItem(int index)
        {
            MonsterUserData monsterUserData = this.deckMonsterList[this.selectItemIndex];

            if (monsterUserData != null)
            {
                MonsterClientMaster monsterMaster = monsterUserData.GetMonsterMaster();
                this.listItemList[this.selectItemIndex].ClearSelect(monsterMaster.Group);
            }
            this.selectItemIndex = index;
            monsterUserData      = this.deckMonsterList[index];
            if (monsterUserData != null)
            {
                this.listItemList[index].SetSelect();
            }
        }
        protected void SetGashaCutScene(GameWebAPI.RespDataGA_ExecGacha gashaResult, bool isTutorial)
        {
            GameWebAPI.RespDataGA_ExecGacha.GachaResultMonster[] userMonsterList = gashaResult.userMonsterList;
            string[] array  = new string[userMonsterList.Length];
            string[] array2 = new string[userMonsterList.Length];
            for (int i = 0; i < userMonsterList.Length; i++)
            {
                MonsterUserData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterList[i].userMonsterId);

                GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = userMonster.GetMonsterMaster().Group;
                array[i]  = group.modelId;
                array2[i] = group.growStep;
            }
            CutsceneDataGasha cutsceneDataGasha = new CutsceneDataGasha();

            cutsceneDataGasha.path         = "Cutscenes/Gasha";
            cutsceneDataGasha.modelIdList  = array;
            cutsceneDataGasha.growStepList = array2;
            CutsceneDataGasha cutsceneDataGasha2 = cutsceneDataGasha;

            if (ExecGashaMonster.< > f__mg$cache0 == null)
            {
                ExecGashaMonster.< > f__mg$cache0 = new Action(CutSceneMain.FadeReqCutSceneEnd);
            }
            cutsceneDataGasha2.endCallback = ExecGashaMonster.< > f__mg$cache0;
            CutsceneDataGasha cutsceneDataGasha3 = cutsceneDataGasha;

            Loading.Invisible();
            if (isTutorial)
            {
                this.showedGashaResultAction = new Action(Singleton <TutorialObserver> .Instance.ResumeScript);
            }
            CutsceneDataBase cutsceneData = cutsceneDataGasha3;

            if (ExecGashaMonster.< > f__mg$cache1 == null)
            {
                ExecGashaMonster.< > f__mg$cache1 = new Action(CMD_MonsterGashaResult.CreateDialog);
            }
            CutSceneMain.FadeReqCutScene(cutsceneData, ExecGashaMonster.< > f__mg$cache1, null, new Action <int>(this.OnShowedGashaResultDialog), 0.5f, 0.5f);
        }
        private void SetGashaResult(GameWebAPI.RespDataGA_ExecGacha gashaResult, int playCount)
        {
            UserHomeInfo.dirtyMyPage = true;
            ClassSingleton <MonsterUserDataMng> .Instance.AddUserMonsterData(gashaResult.userMonsterList);

            ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonsterList());

            for (int i = 0; i < gashaResult.userMonsterList.Length; i++)
            {
                if (Convert.ToBoolean(gashaResult.userMonsterList[i].isNew))
                {
                    MonsterUserData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(gashaResult.userMonsterList[i].userMonsterId);

                    GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = userMonster.GetMonsterMaster().Group;
                    if (!MonsterPicturebookData.ExistPicturebook(group.monsterCollectionId))
                    {
                        MonsterPicturebookData.AddPictureBook(group.monsterCollectionId);
                    }
                }
            }
            base.UpdateUserAssetsInventory(playCount);
            base.UpdateGashaInfo(playCount);
        }
Exemple #7
0
    private void EndEvolveDo(string monsterModelId, string monsterGrowStep, int costCluster)
    {
        if (this.evolveDataBK.mem.effectType != "2")
        {
            GooglePlayGamesTool.Instance.Evolution();
        }
        DataMng.Instance().US_PlayerInfoSubChipNum(costCluster);
        this.UpdateClusterNum();
        ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList());

        ClassSingleton <EvolutionData> .Instance.EvolvePostProcess(this.evolveDataBK.itemList);

        string partnerModelId = string.Empty;

        if ("0" != this.evolveDataBK.mem.effectMonsterId)
        {
            MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(this.evolveDataBK.mem.effectMonsterId);
            if (monsterMasterByMonsterId != null)
            {
                partnerModelId = monsterMasterByMonsterId.Group.modelId;
            }
        }
        MonsterUserData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(this.evolveDataBK.md.GetMonster().userMonsterId);

        if (!MonsterPicturebookData.ExistPicturebook(userMonster.GetMonsterMaster().Group.monsterCollectionId))
        {
            MonsterPicturebookData.AddPictureBook(userMonster.GetMonsterMaster().Group.monsterCollectionId);
        }
        CutsceneDataBase cutsceneData = null;
        string           effectType   = this.evolveDataBK.mem.effectType;

        if (effectType != null)
        {
            if (!(effectType == "1"))
            {
                if (!(effectType == "2"))
                {
                    if (effectType == "3" || effectType == "4")
                    {
                        CutsceneDataJogress cutsceneDataJogress = new CutsceneDataJogress();
                        cutsceneDataJogress.path           = "Cutscenes/Jogress";
                        cutsceneDataJogress.beforeModelId  = monsterModelId;
                        cutsceneDataJogress.afterModelId   = userMonster.GetMonsterMaster().Group.modelId;
                        cutsceneDataJogress.partnerModelId = partnerModelId;
                        CutsceneDataJogress cutsceneDataJogress2 = cutsceneDataJogress;
                        if (CMD_Evolution.< > f__mg$cache3 == null)
                        {
                            CMD_Evolution.< > f__mg$cache3 = new Action(CutSceneMain.FadeReqCutSceneEnd);
                        }
                        cutsceneDataJogress2.endCallback = CMD_Evolution.< > f__mg$cache3;
                        cutsceneData = cutsceneDataJogress;
                    }
                }
                else
                {
                    CutsceneDataModeChange cutsceneDataModeChange = new CutsceneDataModeChange();
                    cutsceneDataModeChange.path          = "Cutscenes/ModeChange";
                    cutsceneDataModeChange.beforeModelId = monsterModelId;
                    cutsceneDataModeChange.afterModelId  = userMonster.GetMonsterMaster().Group.modelId;
                    CutsceneDataModeChange cutsceneDataModeChange2 = cutsceneDataModeChange;
                    if (CMD_Evolution.< > f__mg$cache2 == null)
                    {
                        CMD_Evolution.< > f__mg$cache2 = new Action(CutSceneMain.FadeReqCutSceneEnd);
                    }
                    cutsceneDataModeChange2.endCallback = CMD_Evolution.< > f__mg$cache2;
                    cutsceneData = cutsceneDataModeChange;
                }
            }
            else if (MonsterGrowStepData.IsUltimateScope(userMonster.GetMonsterMaster().Group.growStep))
            {
                CutsceneDataEvolutionUltimate cutsceneDataEvolutionUltimate = new CutsceneDataEvolutionUltimate();
                cutsceneDataEvolutionUltimate.path          = "Cutscenes/EvolutionUltimate";
                cutsceneDataEvolutionUltimate.beforeModelId = monsterModelId;
                cutsceneDataEvolutionUltimate.afterModelId  = userMonster.GetMonsterMaster().Group.modelId;
                CutsceneDataEvolutionUltimate cutsceneDataEvolutionUltimate2 = cutsceneDataEvolutionUltimate;
                if (CMD_Evolution.< > f__mg$cache0 == null)
                {
                    CMD_Evolution.< > f__mg$cache0 = new Action(CutSceneMain.FadeReqCutSceneEnd);
                }
                cutsceneDataEvolutionUltimate2.endCallback = CMD_Evolution.< > f__mg$cache0;
                cutsceneData = cutsceneDataEvolutionUltimate;
            }
            else
            {
                CutsceneDataEvolution cutsceneDataEvolution = new CutsceneDataEvolution();
                cutsceneDataEvolution.path           = "Cutscenes/Evolution";
                cutsceneDataEvolution.beforeModelId  = monsterModelId;
                cutsceneDataEvolution.beforeGrowStep = monsterGrowStep;
                cutsceneDataEvolution.afterModelId   = userMonster.GetMonsterMaster().Group.modelId;
                cutsceneDataEvolution.afterGrowStep  = userMonster.GetMonsterMaster().Group.growStep;
                CutsceneDataEvolution cutsceneDataEvolution2 = cutsceneDataEvolution;
                if (CMD_Evolution.< > f__mg$cache1 == null)
                {
                    CMD_Evolution.< > f__mg$cache1 = new Action(CutSceneMain.FadeReqCutSceneEnd);
                }
                cutsceneDataEvolution2.endCallback = CMD_Evolution.< > f__mg$cache1;
                cutsceneData = cutsceneDataEvolution;
            }
        }
        Loading.Invisible();
        CutSceneMain.FadeReqCutScene(cutsceneData, new Action(this.StartCutSceneCallBack), delegate()
        {
            this.detailedWindow.StartAnimation();
            if (this.execEvolutionReviewStatus != CMD_Evolution.EvolutionReviewStatus.FIRST_EVOLUTION_REVIEW && this.execEvolutionReviewStatus != CMD_Evolution.EvolutionReviewStatus.FIRST_ULTIMA_EVOLUTION_REVIEW)
            {
                RestrictionInput.EndLoad();
            }
        }, 0.5f, 0.5f);
    }
 public void SetItemDetailed(MonsterUserData monster)
 {
     this.monsterIcon.SetColosseumDeckMonsterDetailed(monster);
     GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = monster.GetMonsterMaster().Group;
     this.SetSortieLimitState(group);
 }