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 override void Show(Action <int> f, float sizeX, float sizeY, float aT) { GUICollider.DisableAllCollider("CMD_QuestSelect"); List <QuestData.WorldAreaData> worldAreaM_Normal = ClassSingleton <QuestData> .Instance.GetWorldAreaM_Normal(); this.worldAreaMList = new List <QuestData.WorldAreaData>(); for (int i = 0; i < worldAreaM_Normal.Count; i++) { if (worldAreaM_Normal[i].isActive) { List <QuestData.WorldStageData> worldStageData_ByAreaID = ClassSingleton <QuestData> .Instance.GetWorldStageData_ByAreaID(worldAreaM_Normal[i].data.worldAreaId); DkLog.W(string.Format("{0} : {1} : {2}", worldAreaM_Normal[i].data.name, worldAreaM_Normal[i].isActive, worldStageData_ByAreaID.Count), false); if (worldStageData_ByAreaID.Count > 0) { this.worldAreaMList.Add(worldAreaM_Normal[i]); } } } bool flag = this.IsColosseumOpen() && DataMng.Instance().IsReleaseColosseum; if (flag) { GameWebAPI.RespDataMA_GetWorldAreaM respDataMA_WorldAreaM = MasterDataMng.Instance().RespDataMA_WorldAreaM; GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM data = respDataMA_WorldAreaM.worldAreaM.Where((GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM x) => x.worldAreaId == "5").FirstOrDefault <GameWebAPI.RespDataMA_GetWorldAreaM.WorldAreaM>(); QuestData.WorldAreaData worldAreaData = new QuestData.WorldAreaData(); worldAreaData.data = data; worldAreaData.isActive = true; this.worldAreaMList.Add(worldAreaData); } base.PartsTitle.SetTitle(StringMaster.GetString("QuestTopTitle")); this.InitUI(); base.Show(f, sizeX, sizeY, aT); base.SetTutorialAnyTime("anytime_second_tutorial_quest"); RestrictionInput.EndLoad(); }