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