Example #1
0
    private UserMissionVo ParseUserMission(UserMissionPB userMissionPb)
    {
        UserMissionVo vo = new UserMissionVo();

        vo.InitData(userMissionPb);

        return(vo);
    }
Example #2
0
        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);
        }
Example #3
0
    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);
                }
            }
        }
    }
Example #4
0
    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);
                }
            }
        }
    }