private UserMissionVo ParseUserMission(UserMissionPB userMissionPb) { UserMissionVo vo = new UserMissionVo(); vo.InitData(userMissionPb); return(vo); }
public void InitData(UserMissionPB userMissionPb) { UserId = userMissionPb.UserId; MissionId = userMissionPb.MissionId; MissionType = userMissionPb.MissionType; Status = userMissionPb.Status; Progress = userMissionPb.Progress; Finish = userMissionPb.Finish; //遇到奇葩的排序要求直接给权重 UpdateMissionPro(Status); }
public void UpdateUserPlayerBirthdayMission(UserMissionPB vo, int day) { var list = GetPlayerBirthdayMission(day); if (list != null) { foreach (var v in list) { if (v.MissionId == vo.MissionId) { v.Progress = vo.Progress; v.Finish = vo.Finish; v.Status = vo.Status; v.MissionType = vo.MissionType; v.UpdateMissionPro(vo.Status); } } } }
public void UpdateUserMission(UserMissionPB vo) { if (UserMissionList != null) { foreach (var v in UserMissionList) { if (v.MissionId == vo.MissionId) { // Debug.LogError(vo); v.Progress = vo.Progress; v.Finish = vo.Finish; v.Status = vo.Status; v.MissionType = vo.MissionType; //需要更新权重! v.UpdateMissionPro(vo.Status); } } } }