A utility that allows mods to read default and custom song data from song.desc
Legacy version for MelonLoader 0.2.7.X
(Missing a mod? Contact CB#1997 on Discord)
- Grab this dll
- Add it as a refrence in your project
- Include the dll with your mod download (or ask them to download it from here)
Need help? Contact CB#1997 on Discord
public static Dictionary<string, SongData> AllSongData
Contains all the song data for all loaded songs. Dictionary string is the song ID. Returns a SongData class (documented) below
public static void ReloadSongData()
Reloads the song data for all songs
[insert every default audica song.desc variable]
-
public bool SongHasCustomData()
Returns true if there is any custom song data present for a specified SongData, otherwise false -
public bool SongHasCustomDataKey(string key)
Returns true if a specified SongData has custom data for a specified key -
public T GetCustomData
generic function that gets data for a specific SongData that corresponds to a given key<T>
(string key) -
public static bool IsDataLoaded()
returns true if data loading has finished
//return if the song doesnt have custom data
if (!SongDataLoader.AllSongData[song.songID].HasCustomData())
break;
//if the song has data for the key "customExpert"
if (SongDataLoader.AllSongData[song.songID].SongHasCustomDataKey("customExpert"))
{
}
//get a default data value. tempo in this case
SongDataLoader.AllSongData[song.songID].tempo