private void LoadSongAnalysis(IDifficultyBeatmap difficulty)
        {
            if (CurrentUI == null)
            {
                Log($"UI not initalized");
                return;
            }

            var level = difficulty?.level;

            if (difficulty != null && level != null)
            {
                Log($"Song name: {level.songName}");
                Log($"ID: {level.levelID}");

                var score = RamsesFileParser.GetRamsesScore(level, difficulty);
                CurrentUI.SetAnkhRating(score.Average);
                Log($"Ankh Score (Avg): {score.Average}");
            }
            else
            {
                CurrentUI.SetAnkhRating(null);
                Log("LDC has no selected level");
            }
        }
Exemple #2
0
 public void OnApplicationStart()
 {
     BSEvents.menuSceneLoadedFresh += OnMenuSceneLoadedFresh;
     RamsesFileParser.LoadCachedFiles();
     Log("Ramses initialized.");
 }