public void SetLevelConfig(PVELevel config)
 {
     this.levelConfig = config;
     this.isCurrentProgrssLevel = GameData.instance.CurrentPVE.pveLevelId == this.levelConfig.id;
     this.userPVELevel = GameData.instance.GetUserPVELevel(this.levelConfig.id);
     this.UpdateBasicInfo();
 }
예제 #2
0
    public bool IsPVELevelPassed(int levelid)
    {
        UserPVELevel userPVELevel = this.GetUserPVELevel(levelid);

        if (userPVELevel == null)
        {
            return(false);
        }
        return(userPVELevel.status == UsePVELevelStatus.passed);
    }
예제 #3
0
 public void SetPassedPVELevels(UserPVELevel[] levels)
 {
     if ((levels == null) || (levels.Length == 0))
     {
         this._passedPVELevels = new List<UserPVELevel>();
     }
     else
     {
         this._passedPVELevels = levels.ToList<UserPVELevel>();
     }
     if (f_am_cache33 == null)
     {
         f_am_cache33 = n => n.pveLevelId;
     }
     if (f_am_cache34 == null)
     {
         f_am_cache34 = n => n;
     }
     this._passedPVELevelsDic = this._passedPVELevels.ToDictionary<UserPVELevel, int, UserPVELevel>(f_am_cache33, f_am_cache34);
 }