Esempio n. 1
0
 private static GameWebAPI.RespDataMA_GetMonsterMG.MonsterM GetMonsterGroupMaster(string monsterGroupId)
 {
     GameWebAPI.RespDataMA_GetMonsterMG.MonsterM   result   = null;
     GameWebAPI.RespDataMA_GetMonsterMG.MonsterM[] monsterM = MasterDataMng.Instance().RespDataMA_MonsterMG.monsterM;
     for (int i = 0; i < monsterM.Length; i++)
     {
         if (monsterM[i] != null && monsterM[i].monsterGroupId == monsterGroupId)
         {
             result = monsterM[i];
             break;
         }
     }
     return(result);
 }
Esempio n. 2
0
 public GameWebAPI.RespDataMA_GetSoulM.SoulM GetSoulMaster(string soulId)
 {
     GameWebAPI.RespDataMA_GetSoulM.SoulM   result = null;
     GameWebAPI.RespDataMA_GetSoulM.SoulM[] soulM  = MasterDataMng.Instance().RespDataMA_SoulM.soulM;
     for (int i = 0; i < soulM.Length; i++)
     {
         if (soulM[i].soulId == soulId)
         {
             result = soulM[i];
             break;
         }
     }
     return(result);
 }
    private static GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus[] GetEventPointBonuses(string worldDungeonId)
    {
        List <GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus> list = new List <GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus>();

        GameWebAPI.RespDataMA_EventPointBonusM respDataMA_EventPointBonusMaster = MasterDataMng.Instance().RespDataMA_EventPointBonusMaster;
        foreach (GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus eventPointBonus in respDataMA_EventPointBonusMaster.eventPointBonusM)
        {
            if (eventPointBonus.worldDungeonId == worldDungeonId && eventPointBonus.effectType != "0")
            {
                list.Add(eventPointBonus);
            }
        }
        return(list.ToArray());
    }
Esempio n. 4
0
        private IEnumerator UpgradeMasterData(List <MasterId> updateInfoList)
        {
            if (0 < updateInfoList.Count)
            {
                Loading.Invisible();
                AppCoroutine.Start(MasterDataMng.Instance().UpdateLocalMasterData(updateInfoList), false);
                CMD_ShortDownload shortDownload = GUIMain.ShowCommonDialog(null, "CMD_ShortDownload", null) as CMD_ShortDownload;
                yield return(AppCoroutine.Start(shortDownload.WaitMasterDataDownload(), false));

                shortDownload.ClosePanel(true);
                Loading.ResumeDisplay();
            }
            yield break;
        }
Esempio n. 5
0
 public static GameWebAPI.RespDataMA_ChipEffectM.ChipEffect GetChipEffectDataToId(string chipEffectId)
 {
     GameWebAPI.RespDataMA_ChipEffectM.ChipEffect   result      = null;
     GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] chipEffectM = MasterDataMng.Instance().RespDataMA_ChipEffectMaster.chipEffectM;
     foreach (GameWebAPI.RespDataMA_ChipEffectM.ChipEffect chipEffect in chipEffectM)
     {
         if (chipEffect.chipEffectId == chipEffectId)
         {
             result = chipEffect;
             break;
         }
     }
     return(result);
 }
Esempio n. 6
0
 public GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM GetWorldDungeonMaster(string worldDungeonId)
 {
     GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM   result        = null;
     GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM[] worldDungeonM = MasterDataMng.Instance().RespDataMA_WorldDungeonM.worldDungeonM;
     for (int i = 0; i < worldDungeonM.Length; i++)
     {
         if (worldDungeonId == worldDungeonM[i].worldDungeonId)
         {
             result = worldDungeonM[i];
             break;
         }
     }
     return(result);
 }
Esempio n. 7
0
 public override void ShowGUI()
 {
     base.ShowGUI();
     GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => this.data.wdi.dungeons[0].dungeonTicketId == x.dungeonTicketId);
     if (dungeonTicketM != null)
     {
         Texture2D texture2D = NGUIUtil.LoadTexture(dungeonTicketM.img);
         if (texture2D != null)
         {
             NGUIUtil.ChangeUITexture(this.ngTICKET_THUMBNAIL, texture2D, false);
         }
         if (!string.IsNullOrEmpty(this.data.wdi.expireTime))
         {
             this.ngTXT_TICKET_EXPIRE_TIME.text = string.Format(StringMaster.GetString("ExchangeTimeLimit"), this.data.wdi.expireTime);
             this.isLimit = true;
         }
         else
         {
             this.ngTXT_TICKET_EXPIRE_TIME.text = string.Format(StringMaster.GetString("ExchangeTimeLimit"), StringMaster.GetString("SystemNone"));
             this.isLimit = false;
         }
         this.isFree = (dungeonTicketM.freeFlg == "1");
         if (this.ngTXT_TICKET_UPDATE_TIME != null)
         {
             string arg        = string.Empty;
             string updateTime = this.data.wdi.updateTime;
             int    num        = updateTime.IndexOf(' ', 0);
             if (num != -1)
             {
                 arg = updateTime.Substring(0, num);
             }
             else
             {
                 arg = updateTime;
             }
             this.ngTXT_TICKET_UPDATE_TIME.text = string.Format(StringMaster.GetString("TicketQuestUpdateTime2"), arg);
         }
         this.SetBGColor(false);
     }
     if (this.ngTXT_TICKET_NAME != null)
     {
         this.ngTXT_TICKET_NAME.text = this.data.worldStageM.name;
     }
     if (this.ngTXT_TICKET_NUM != null)
     {
         this.ngTXT_TICKET_NUM.text = this.Data.wdi.totalTicketNum.ToString();
     }
     this.SetStageGimmick();
 }
Esempio n. 8
0
 private void OnClickedParts()
 {
     if (this.helpCMD.GetComponent <CMD_HelpCategory>())
     {
         CMD_HelpList.Data           = MasterDataMng.Instance().RespDataMA_HelpM;
         CMD_HelpList.helpCategoryId = this.helpCategoryId;
         GUIMain.ShowCommonDialog(null, "CMD_HelpList", null);
     }
     else
     {
         CommonDialog commonDialog = GUIMain.ShowCommonDialog(null, "CMDWebWindow", null);
         ((CMDWebWindow)commonDialog).TitleText = this.ListData.helpTitle;
         ((CMDWebWindow)commonDialog).Url       = WebAddress.EXT_ADR_HELP_DETAIL + this.ListData.helpId;
     }
 }
    private void OnReadyPartyEdit(CommonDialog dialog)
    {
        CMD_PartyEdit cmd_PartyEdit = dialog as CMD_PartyEdit;

        if (null != cmd_PartyEdit)
        {
            GameWebAPI.WD_Req_DngStart last_dng_req = DataMng.Instance().GetResultUtilData().last_dng_req;
            GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM[] worldDungeonM = MasterDataMng.Instance().RespDataMA_WorldDungeonM.worldDungeonM;
            int dungeonID = int.Parse(last_dng_req.dungeonId);
            GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM masterDungeon = worldDungeonM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM x) => x.worldDungeonId == dungeonID.ToString());
            GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM[]   worldStageM   = MasterDataMng.Instance().RespDataMA_WorldStageM.worldStageM;
            GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM     worldStageM2  = worldStageM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM x) => x.worldStageId == masterDungeon.worldStageId);
            cmd_PartyEdit.SetQuestId(worldStageM2.worldAreaId, worldStageM2.worldStageId, last_dng_req.dungeonId);
        }
    }
 private static void CreateSkillGroupList(ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destSkillGroupList)
 {
     GameWebAPI.RespDataMA_GetSkillM.SkillM[] skillM = MasterDataMng.Instance().RespDataMA_SkillM.skillM;
     for (int i = 0; i < skillM.Length; i++)
     {
         if (skillM[i] != null)
         {
             MonsterSkillClientMaster skillMasterBySkillId = MonsterSkillData.GetSkillMasterBySkillId(skillM[i].skillId);
             if (skillMasterBySkillId != null)
             {
                 MonsterUniqueSkillData.AddSkillGroupData(skillMasterBySkillId, ref destSkillGroupList);
             }
         }
     }
 }
Esempio n. 11
0
        private IEnumerator GetOldMasterDataIdList(List <MasterId> updateInfoList)
        {
            UnityEngine.Object     resource    = AssetDataMng.Instance().LoadObject("UIPrefab/MasterDataLoadingGauge", null, true);
            GameObject             go          = UnityEngine.Object.Instantiate(resource) as GameObject;
            MasterDataLoadingGauge topDownload = go.GetComponent <MasterDataLoadingGauge>();

            AppCoroutine.Start(MasterDataMng.Instance().ReadMasterData(updateInfoList, new Action <int, int>(topDownload.SetLoadProgress)), false);
            yield return(AppCoroutine.Start(topDownload.WaitMasterDataLoad(), false));

            resource    = null;
            topDownload = null;
            UnityEngine.Object.Destroy(go);
            go = null;
            yield break;
        }
Esempio n. 12
0
    public static GameWebAPI.RespDataMA_ChipM.Chip GetChipEnhancedData(string chipId)
    {
        GameWebAPI.RespDataMA_ChipM.Chip beforeChip = null;
        ChipDataMng.GetDictionaryChipM().TryGetValue(int.Parse(chipId), out beforeChip);
        IEnumerable <GameWebAPI.RespDataMA_ChipM.Chip> source = MasterDataMng.Instance().RespDataMA_ChipMaster.chipM.Where((GameWebAPI.RespDataMA_ChipM.Chip c) => c.chipGroupId == beforeChip.chipGroupId && int.Parse(c.rank) > int.Parse(beforeChip.rank));

        GameWebAPI.RespDataMA_ChipM.Chip chip = null;
        if (source.Count <GameWebAPI.RespDataMA_ChipM.Chip>() > 0)
        {
            chip = source.OrderBy((GameWebAPI.RespDataMA_ChipM.Chip c) => int.Parse(c.rank)).ToArray <GameWebAPI.RespDataMA_ChipM.Chip>()[0];
            chip = ChipDataMng.SetChipIconPath(chip);
            chip = ChipDataMng.SetChipSellPrice(chip);
        }
        return(chip);
    }
Esempio n. 13
0
        public static string GetTitle(string arousal)
        {
            string result = string.Empty;

            GameWebAPI.RespDataMA_MonsterArousalMaster.ArousalData[] monsterRareM = MasterDataMng.Instance().ResponseMonsterArousalMaster.monsterRareM;
            for (int i = 0; i < monsterRareM.Length; i++)
            {
                if (arousal == monsterRareM[i].monsterRareId)
                {
                    result = monsterRareM[i].title;
                    break;
                }
            }
            return(result);
        }
Esempio n. 14
0
        public static int GetGoldMedalMaxNum(string arousal)
        {
            int result = 0;

            GameWebAPI.RespDataMA_MonsterArousalMaster.ArousalData[] monsterRareM = MasterDataMng.Instance().ResponseMonsterArousalMaster.monsterRareM;
            for (int i = 0; i < monsterRareM.Length; i++)
            {
                if (arousal == monsterRareM[i].monsterRareId)
                {
                    result = int.Parse(monsterRareM[i].goldMedalMaxNum);
                    break;
                }
            }
            return(result);
        }
Esempio n. 15
0
    private bool IsAlreadySameGroupIdChipAttached(List <string> myDigimonChipGroupIds, int chipId)
    {
        if (myDigimonChipGroupIds == null)
        {
            return(false);
        }
        string strChipId = chipId.ToString();

        GameWebAPI.RespDataMA_ChipM.Chip chip = MasterDataMng.Instance().RespDataMA_ChipMaster.chipM.Where((GameWebAPI.RespDataMA_ChipM.Chip c) => c.chipId == strChipId).SingleOrDefault <GameWebAPI.RespDataMA_ChipM.Chip>();
        if (chip == null)
        {
            global::Debug.LogError("なぜかchipIdがおかしい.");
            return(true);
        }
        return(myDigimonChipGroupIds.Contains(chip.chipGroupId));
    }
    public IEnumerator WaitMasterDataDownload()
    {
        MasterDataMng manager     = MasterDataMng.Instance();
        int           downloadNum = manager.GetMasterDataDownloadNum();

        this.progressBar.gameObject.SetActive(true);
        while (!manager.IsFinishedGetMasterData())
        {
            this.SetProgressBar((float)manager.GetMasterDataProgress(), (float)downloadNum);
            yield return(null);
        }
        this.SetProgressBar(1f, 1f);
        yield return(new WaitForSeconds(0.25f));

        yield break;
    }
Esempio n. 17
0
 public static Dictionary <int, GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[]> GetDictionaryChipEffectM()
 {
     if (ChipDataMng.ChipEffectM == null)
     {
         ChipDataMng.ChipEffectM = new Dictionary <int, GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[]>();
         using (Dictionary <int, GameWebAPI.RespDataMA_ChipM.Chip> .Enumerator enumerator = ChipDataMng.GetDictionaryChipM().GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 KeyValuePair <int, GameWebAPI.RespDataMA_ChipM.Chip> chip = enumerator.Current;
                 ChipDataMng.ChipEffectM[chip.Key] = MasterDataMng.Instance().RespDataMA_ChipEffectMaster.chipEffectM.Where((GameWebAPI.RespDataMA_ChipEffectM.ChipEffect e) => e.chipId == chip.Value.chipId).ToArray <GameWebAPI.RespDataMA_ChipEffectM.ChipEffect>();
             }
         }
     }
     return(ChipDataMng.ChipEffectM);
 }
Esempio n. 18
0
 public void SetNavigationMessage(int[] idList)
 {
     this.navigationMessageInfoList = new List <GameWebAPI.RespDataMA_NavigationMessageMaster.NavigationMessageInfo>();
     if (idList != null)
     {
         GameWebAPI.RespDataMA_NavigationMessageMaster navigationMessageMaster = MasterDataMng.Instance().NavigationMessageMaster;
         for (int i = 0; i < idList.Length; i++)
         {
             GameWebAPI.RespDataMA_NavigationMessageMaster.NavigationMessageInfo navigationMessage = this.GetNavigationMessage(navigationMessageMaster, idList[i]);
             if (navigationMessage != null)
             {
                 this.navigationMessageInfoList.Add(navigationMessage);
             }
         }
     }
 }
Esempio n. 19
0
 private void SkipDisplayMessage()
 {
     ScriptCommandParams.TextInfo textInfo    = this.scriptEngine.GetTextInfo();
     TutorialMaster.NaviMessage   naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(textInfo.displayText);
     if (textInfo.isWindowText)
     {
         if ("0" != naviMessage.faceId)
         {
             this.charaFaceId = naviMessage.faceId;
         }
         this.tutorialUI.MessageWindow.SkipDisplayMessage(naviMessage.message);
     }
     else
     {
         this.tutorialUI.NonFrameText.SetText(naviMessage.message);
     }
 }
Esempio n. 20
0
 private static void CreateMonsterMasterClient(ref Dictionary <string, MonsterClientMaster> destSimpleMasterList, ref Dictionary <string, Dictionary <string, MonsterClientMaster> > destGroupMasterList)
 {
     GameWebAPI.RespDataMA_GetMonsterMS.MonsterM[] monsterM = MasterDataMng.Instance().RespDataMA_MonsterMS.monsterM;
     for (int i = 0; i < monsterM.Length; i++)
     {
         if (monsterM[i] != null)
         {
             GameWebAPI.RespDataMA_GetMonsterMG.MonsterM monsterGroupMaster = MonsterMaster.GetMonsterGroupMaster(monsterM[i].monsterGroupId);
             if (monsterGroupMaster != null)
             {
                 MonsterClientMaster monsterMaster = new MonsterClientMaster(monsterM[i], monsterGroupMaster);
                 MonsterMaster.AddMonsterSimpleMaster(monsterMaster, ref destSimpleMasterList);
                 MonsterMaster.AddMonsterGroupMaster(monsterMaster, ref destGroupMasterList);
             }
         }
     }
 }
Esempio n. 21
0
 public static bool CanChangeToAlmighty(List <HaveSoulData> hsdL, string soulId, int needNum, ref HaveSoulData selectAlMighty)
 {
     GameWebAPI.RespDataMA_GetSoulM       respDataMA_SoulM   = MasterDataMng.Instance().RespDataMA_SoulM;
     GameWebAPI.RespDataMA_GetSoulM.SoulM soulMasterBySoulId = VersionUpMaterialData.GetSoulMasterBySoulId(soulId);
     if (respDataMA_SoulM.IsVersionUpGroup(soulMasterBySoulId) && !respDataMA_SoulM.IsVersionUpAlMighty(soulMasterBySoulId))
     {
         for (int i = 0; i < hsdL.Count; i++)
         {
             if (hsdL[i].haveNum - hsdL[i].curUsedNum >= needNum)
             {
                 selectAlMighty = hsdL[i];
                 return(true);
             }
         }
     }
     return(false);
 }
Esempio n. 22
0
        public string GetDungeonId()
        {
            string result = string.Empty;

            GameWebAPI.RespDataMA_ColosseumM.Colosseum[] colosseumM = MasterDataMng.Instance().RespDataMA_ColosseumMaster.colosseumM;
            GameWebAPI.RespDataMA_ColosseumM.Colosseum   colosseum  = colosseumM.SingleOrDefault(delegate(GameWebAPI.RespDataMA_ColosseumM.Colosseum x)
            {
                DateTime t  = DateTime.Parse(x.openTime);
                DateTime t2 = DateTime.Parse(x.closeTime);
                return(t < ServerDateTime.Now && ServerDateTime.Now < t2);
            });
            if (colosseum != null)
            {
                result = colosseum.worldDungeonId;
            }
            return(result);
        }
Esempio n. 23
0
        public static List <string> GetActivateChipIdList(string areaId)
        {
            List <string> list = new List <string>();

            GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] chipEffectM = MasterDataMng.Instance().RespDataMA_ChipEffectMaster.chipEffectM;
            if (chipEffectM.Length > 0)
            {
                for (int i = 0; i < chipEffectM.Length; i++)
                {
                    if (chipEffectM[i].effectTriggerValue == areaId && chipEffectM[i].effectTrigger == "11" && !list.Contains(chipEffectM[i].chipId))
                    {
                        list.Add(chipEffectM[i].chipId);
                    }
                }
            }
            return(list);
        }
Esempio n. 24
0
 public static GameWebAPI.RespDataMA_MessageM.MessageM GetAlert(string errorCode)
 {
     GameWebAPI.RespDataMA_MessageM.MessageM result = null;
     GameWebAPI.RespDataMA_MessageM          respDataMA_MessageM = MasterDataMng.Instance().RespDataMA_MessageM;
     if (respDataMA_MessageM != null)
     {
         if (!AlertMaster.GetAlertDownloadMaster(respDataMA_MessageM, errorCode, out result))
         {
             bool alertResourceMaster = AlertMaster.GetAlertResourceMaster(errorCode, out result);
         }
     }
     else
     {
         bool alertResourceMaster = AlertMaster.GetAlertResourceMaster(errorCode, out result);
     }
     return(result);
 }
Esempio n. 25
0
 private void OnCloseQuestMultiDetailedPOP(int selectButtonIndex)
 {
     if (!this.CanPlayDungeonOver())
     {
         return;
     }
     if (selectButtonIndex == 10 || selectButtonIndex == 20)
     {
         if (!ClassSingleton <PlayLimit> .Instance.PlayLimitCheck(this.StageDataBk.dungeon, delegate(int _idx)
         {
             if (this.StageDataBk.dungeon.playLimit.recoveryAssetCategoryId == 2)
             {
                 this.OnCloseConfirmShop(_idx);
             }
             else if (this.StageDataBk.dungeon.playLimit.recoveryAssetCategoryId == 6)
             {
                 GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(this.StageDataBk.dungeon.playLimit.recoveryAssetValue.ToString());
                 CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage;
                 cmd_ModalMessage.Title = string.Format(StringMaster.GetString("SystemShortage"), itemM.name);
                 cmd_ModalMessage.Info = string.Format(StringMaster.GetString("QuestPlayLimitItemShortInfo"), itemM.name);
             }
         }, delegate(int _idx_)
         {
             ClassSingleton <PlayLimit> .Instance.RecoverPlayLimit(this.StageDataBk.dungeon, new Action <GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons>(this.OnSuccessedRecoverPlayLimit));
         }, ConstValue.PLAYLIMIT_USE_COUNT))
         {
             return;
         }
         if (CMD_QuestTOP.AreaData.data.worldAreaId == "8")
         {
             ClassSingleton <PlayLimit> .Instance.SetTicketNumCont(this.StageDataBk.dungeon, ConstValue.PLAYLIMIT_USE_COUNT);
         }
     }
     if (selectButtonIndex != 20)
     {
         if (selectButtonIndex == 10)
         {
             this.OnTapMultiParticipateButton();
         }
     }
     else if (this.CanPlayDungeonStamina())
     {
         this.OnTapMultiRecruitButton();
     }
 }
Esempio n. 26
0
        public static string GetString(string key)
        {
            string empty = string.Empty;

            GameWebAPI.RespDataMA_MessageStringM respDataMA_MessageStringMaster = MasterDataMng.Instance().RespDataMA_MessageStringMaster;
            if (respDataMA_MessageStringMaster != null)
            {
                if (!StringMaster.GetStringDownloadMaster(respDataMA_MessageStringMaster, key, out empty))
                {
                    bool stringResourceMaster = StringMaster.GetStringResourceMaster(key, out empty);
                }
            }
            else
            {
                bool stringResourceMaster = StringMaster.GetStringResourceMaster(key, out empty);
            }
            return(empty);
        }
 private bool IsPointQuest(string worldDungeonId)
 {
     GameWebAPI.RespDataMA_GetWorldDungeonM respDataMA_WorldDungeonM  = MasterDataMng.Instance().RespDataMA_WorldDungeonM;
     GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM dungeonInfo = respDataMA_WorldDungeonM.worldDungeonM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM x) => x.worldDungeonId == worldDungeonId);
     if (dungeonInfo == null)
     {
         return(false);
     }
     GameWebAPI.RespDataMA_GetWorldStageM             respDataMA_WorldStageM = MasterDataMng.Instance().RespDataMA_WorldStageM;
     GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM stageInfo = respDataMA_WorldStageM.worldStageM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM x) => x.worldStageId == dungeonInfo.worldStageId);
     if (stageInfo == null)
     {
         return(false);
     }
     GameWebAPI.RespDataMA_GetWorldAreaM            respDataMA_WorldAreaM = MasterDataMng.Instance().RespDataMA_WorldAreaM;
     GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM worldAreaM            = respDataMA_WorldAreaM.worldAreaM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM x) => x.worldAreaId == stageInfo.worldAreaId);
     return(worldAreaM != null && (worldAreaM.type == "3" || worldAreaM.type == "4"));
 }
 public static void Initialize()
 {
     if (null == MasterDataMng.Instance() || MasterDataMng.Instance().RespDataMA_SkillM == null || MasterDataMng.Instance().RespDataMA_SkillM.skillM == null || MasterDataMng.Instance().RespDataMA_SkillDetailM == null || MasterDataMng.Instance().RespDataMA_SkillDetailM.convertSkillDetailM == null)
     {
         return;
     }
     if (MonsterUniqueSkillData.skillGroupList == null)
     {
         MonsterUniqueSkillData.skillGroupList = new Dictionary <string, Dictionary <string, MonsterSkillClientMaster> >();
     }
     else
     {
         MonsterUniqueSkillData.skillGroupList.Clear();
     }
     MonsterUniqueSkillData.normalAttackSkillData = null;
     MonsterUniqueSkillData.CreateSkillGroupList(ref MonsterUniqueSkillData.skillGroupList);
     MonsterUniqueSkillData.SetNormalAttackData(ref MonsterUniqueSkillData.normalAttackSkillData);
 }
        public static MonsterFixedM GetMonsterFixedMaster(string id)
        {
            MonsterFixedM result = null;

            MonsterFixedM[] monsterFixedValueM = MasterDataMng.Instance().ResponseMonsterFixedMaster.monsterFixedValueM;
            if (monsterFixedValueM != null)
            {
                for (int i = 0; i < monsterFixedValueM.Length; i++)
                {
                    if (monsterFixedValueM[i].monsterFixedValueId == id)
                    {
                        result = monsterFixedValueM[i];
                        break;
                    }
                }
            }
            return(result);
        }
    private void OpenExchangedItemModalMessage(ExchangeItem exchangeItem)
    {
        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory) int.Parse(exchangeItem.exchangeItemData.assetCategoryId);
        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.DIGI_STONE:
            DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point -= int.Parse(this.consumeNum);
            break;

        default:
            if (assetCategory == MasterDataMng.AssetCategory.MEAT)
            {
                int num = int.Parse(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.meatNum) - int.Parse(this.consumeNum);
                DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.meatNum = num.ToString();
            }
            break;

        case MasterDataMng.AssetCategory.TIP:
        {
            int num2 = int.Parse(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.gamemoney) - int.Parse(this.consumeNum);
            DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.gamemoney = num2.ToString();
            break;
        }

        case MasterDataMng.AssetCategory.ITEM:
        {
            GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(exchangeItem.exchangeItemData.assetValue);
            if (itemM != null && int.Parse(itemM.itemId) == 2)
            {
                Singleton <UserDataMng> .Instance.UpdateUserItemNum(2, -int.Parse(this.consumeNum));
            }
            break;
        }
        }
        int              num3 = int.Parse(exchangeItem.exchangeDetailNum, NumberStyles.AllowThousands);
        string           exchangeDetailName = exchangeItem.exchangeDetailName;
        string           arg              = StringFormat.Cluster(num3 * exchangeItem.numCounter);
        string           info             = string.Format(StringMaster.GetString("ExchangeSuccessInfo"), exchangeDetailName, arg);
        CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(new Action <int>(this.RunReExchangeInfoLogicAPI), "CMD_ModalMessage", null) as CMD_ModalMessage;

        cmd_ModalMessage.Title = StringMaster.GetString("ExchangeSuccessTitle");
        cmd_ModalMessage.Info  = info;
        GUIPlayerStatus.RefreshParams_S(true);
    }