Beispiel #1
0
 public void NextStatistic()
 {
     sortingStat++;
     if ((int)sortingStat > 9)
     {
         sortingStat = SortableStats.Name;
     }
     HallOfFame.Instance().Sort();
 }
Beispiel #2
0
 public HallOfFameSorter(GameScenes scene, SortDirection sortingDirection = SortDirection.Ascending,
                         SortMode mode            = SortMode.Stat,
                         SortableStats sortByStat = SortableStats.Name, SortableSkills sortBySkill = SortableSkills.Specialist)
     : base(scene)
 {
     this.sortingDirection = sortingDirection;
     this.sortMode         = mode;
     this.sortingStat      = sortByStat;
     this.sortingSkill     = sortBySkill;
 }
Beispiel #3
0
 public void SetStatsPredicate(SortableStats predicate)
 {
     sortingStat = predicate;
     HallOfFame.Instance().Sort();
 }