public void SetLevelInfo(UserPVEEventLevel ul, int index)
 {
     this.userLevel = ul;
     this.index = index;
     this.levelConfig = PVEConfigs.instance.GetEventLevel(ul.id);
     this.UpdateUI();
 }
Пример #2
0
    public bool IsPVEEventLevelPassed(int levelid)
    {
        UserPVEEventLevel userPVEEventLevel = this.GetUserPVEEventLevel(levelid);

        if (userPVEEventLevel == null)
        {
            return(false);
        }
        return(userPVEEventLevel.status == UsePVELevelStatus.passed);
    }
Пример #3
0
 public void SetPassedPVEEventLevels(UserPVEEventLevel[] levels)
 {
     if ((levels == null) || (levels.Length == 0))
     {
         this.passedPVEEventLevels = new List<UserPVEEventLevel>();
     }
     else
     {
         this.passedPVEEventLevels = levels.ToList<UserPVEEventLevel>();
     }
     if (f_am_cache35 == null)
     {
         f_am_cache35 = n => n.id;
     }
     if (f_am_cache36 == null)
     {
         f_am_cache36 = n => n;
     }
     this.passedPVEEventLevelsDic = this.passedPVEEventLevels.ToDictionary<UserPVEEventLevel, int, UserPVEEventLevel>(f_am_cache35, f_am_cache36);
 }