public Api_Result <List <User_MissionFmt> > Mission() { Api_Result <List <User_MissionFmt> > api_Result = new Api_Result <List <User_MissionFmt> >(); Mem_missioncomp mem_missioncomp = new Mem_missioncomp(); api_Result.data = mem_missioncomp.GetActiveMission(); return(api_Result); }
public static void MissionOpenToMissionId(int missionId) { Mst_mission2 master = Mst_DataManager.Instance.Mst_mission[missionId]; Mem_missioncomp mem_missioncomp = new Mem_missioncomp(master.Id, master.Maparea_id, MissionClearKinds.CLEARED); List <User_MissionFmt> activeMission = mem_missioncomp.GetActiveMission(); if (activeMission.Any((User_MissionFmt x) => x.MissionId == master.Id)) { Mem_missioncomp value = null; if (Comm_UserDatas.Instance.User_missioncomp.TryGetValue(missionId, out value)) { mem_missioncomp.Update(); } else { mem_missioncomp.Insert(); } mem_missioncomp.GetActiveMission(); } }
public static void MissionOpenToMissionId(int missionId) { Mst_mission2 master = Mst_DataManager.Instance.Mst_mission.get_Item(missionId); Mem_missioncomp mem_missioncomp = new Mem_missioncomp(master.Id, master.Maparea_id, MissionClearKinds.CLEARED); List <User_MissionFmt> activeMission = mem_missioncomp.GetActiveMission(); if (!Enumerable.Any <User_MissionFmt>(activeMission, (User_MissionFmt x) => x.MissionId == master.Id)) { return; } Mem_missioncomp mem_missioncomp2 = null; if (Comm_UserDatas.Instance.User_missioncomp.TryGetValue(missionId, ref mem_missioncomp2)) { mem_missioncomp.Update(); } else { mem_missioncomp.Insert(); } mem_missioncomp.GetActiveMission(); }