public static void AddSong(Beatmap map) { string targetDirectory = GetFolderForMap(map); if (!Directory.Exists(targetDirectory)) { Directory.CreateDirectory(targetDirectory); } BeatmapSerializations.SerializeBeatmap(map, GetFileNameForMap(targetDirectory, map)); }
public static Beatmap DeserializeBeatmap(string fileName) { return(BeatmapSerializations.GetSerializer(fileName)?.Invoke()); }