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