public float GetPP(Structs.SongID songID) { if (!Init) { Logger.log.Error("Tried to use PPData when it wasn't initialized"); throw new Exception("Tried to use PPData when it wasn't initialized"); } switch (songID.difficulty) { case BeatmapDifficulty.Easy: return(_songData[songID.id]._Easy_SoloStandard); case BeatmapDifficulty.Normal: return(_songData[songID.id]._Normal_SoloStandard); case BeatmapDifficulty.Hard: return(_songData[songID.id]._Hard_SoloStandard); case BeatmapDifficulty.Expert: return(_songData[songID.id]._Expert_SoloStandard); case BeatmapDifficulty.ExpertPlus: return(_songData[songID.id]._ExpertPlus_SoloStandard); default: Logger.log.Error("Unknown beatmap difficulty: " + songID.difficulty.ToString()); throw new Exception("Unknown difficultry"); } }
public bool IsRanked(Structs.SongID songID) { return(_songData.ContainsKey(songID.id) && GetPP(songID) > 0); }