Example #1
0
 public static Difficulty GetValue(DifficultyValue stars)
 {
     if (statuses.TryGetValue(stars, out Difficulty result))
     {
         return(result);
     }
     return(NotDefined);
 }
Example #2
0
 private Difficulty(DifficultyValue stars, string name)
 {
     this.Value = stars;
     this.name  = name;
     statuses.Add(stars, this);
 }