This commit is contained in:
SoulliesOfficial
2025-08-27 21:45:18 -04:00
parent 131b182f43
commit 4031b29245
266 changed files with 26272 additions and 18257 deletions

View File

@@ -23,17 +23,30 @@ namespace Ichni.Menu
Destroy(gameObject);
}
}
public SongSelectionRecord GetRecordOfThisChapter()
{
ChapterSelectionUnit currentChapter = ChapterSelectionManager.instance.currentChapter;
if (songSelectionRecords.TryGetValue(currentChapter, out SongSelectionRecord record))
{
return record;
}
else
{
return new SongSelectionRecord(currentChapter.songs[0], currentChapter.songs[0].difficultyDataList[0]);
}
}
}
public struct SongSelectionRecord
public class SongSelectionRecord
{
public SongItemData song;
public DifficultyData difficulty;
public int difficultyIndex;
public SongSelectionRecord(SongItemData song, DifficultyData difficulty)
{
this.song = song;
this.difficulty = difficulty;
difficultyIndex = song.difficultyDataList.IndexOf(difficulty);
}
}
}