示例#1
0
        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");
            }
        }
示例#2
0
 public bool IsRanked(Structs.SongID songID)
 {
     return(_songData.ContainsKey(songID.id) && GetPP(songID) > 0);
 }