public static ExploreArea GetExploreAreaDataByKey(int areaID) { ExploreArea area = null; ExploreAreaDic.TryGetValue(areaID, out area); if (area == null) { Debug.LogError("Get ExploreAreaData Error ! ID=" + areaID); } return(area); }
public Explore(ExploreArea requirement) { this.requirement = requirement; }
public override void Construction() { AllExploreAreaList = new List <ExploreArea>(); for (int i = 0; i < 2; i++) { ExploreArea area = new ExploreArea(); area.AreaID = i; area.Name = ""; area.NameTitle = ""; area.Desc = ""; area.IconPath = ""; area.CameraPos = ""; area.CameraRotation = ""; area.Unlock = true; area.DefaultMissionCount = (ushort)i; area.ExploreList = ""; AllExploreAreaList.Add(area); } AllExploreDataList = new List <ExploreData>(); for (int i = 0; i < 2; i++) { ExploreData data = new ExploreData(); data.ExploreID = i; data.MissionName = ""; data.AreaName = ""; data.MissionDesc = ""; data.BGPath = ""; data.CameraPos = ""; data.CameraRotation = ""; data.TeamMaxNum = (ushort)i; data.UnLockValue = (ushort)i; data.RequirePreID = i; data.HardLevel = (ushort)i; data.Weight = (ushort)i; data.Depth = (ushort)i; data.SeriesID = i; AllExploreDataList.Add(data); } AllExplorePointList = new List <ExplorePoint>(); for (int i = 0; i < 2; i++) { ExplorePoint point = new ExplorePoint(); point.PointID = i; point.SeriesID = i; point.Name = ""; point.Desc = ""; point.ExploreValue = (ushort)i; point.PointNevigator = ""; point.DepthLevel = (ushort)i; point.HardLevel = (ushort)i; point.PrePoint = i; point.EnergyCost = (ushort)i; point.Time = (ushort)i; point.EventID = i; AllExplorePointList.Add(point); } AllExploreEventList = new List <ExploreEvent>(); for (int i = 0; i < 2; i++) { ExploreEvent e = new ExploreEvent(); e.EventID = i; e.Name = ""; e.TitleName = ""; e.Desc = ""; e.EventBG = ""; e.ChooseList = ""; AllExploreEventList.Add(e); } AllExploreChooseList = new List <ExploreChoose>(); for (int i = 0; i < 2; i++) { ExploreChoose choose = new ExploreChoose(); choose.ChooseID = i; choose.Content = ""; choose.RewardID = i; choose.NextEvent = i; AllExploreChooseList.Add(choose); } }