public static void SaveLog() { BeatmapLog beatmapLog = new BeatmapLog { NewMaps = BeatmapNames.Distinct().Where(e => !previousMaps.Contains(e)), AllMaps = BeatmapNames.Distinct(), }; File.WriteAllText(logPath, JsonConvert.SerializeObject(beatmapLog, Formatting.Indented)); }
public async void CreatePlaylistOnClick() { LoadLoggingScene(); ProcessedBeatmapNotifier.SendNotification("Beatmap processing started..."); await PlaylistCreator.CreateAllLists(this.beatmapCount, this.playlistSize, this.catType); ProcessedBeatmapNotifier.SendNotification("All beatmaps processed."); BeatmapLog.SaveLog(); ProcessedBeatmapNotifier.SendNotification("You can view all new beatmaps in the log."); }
public async void OnClick() { LoadLoggingScene(); ProcessedBeatmapNotifier.SendNotification("Calculating max beatmap count..."); ProcessedBeatmapNotifier.SendNotification("Beatmap processing started..."); await CreateAllPlaylistCreators(CurrentBeatmapCount.CurrentMapCount); ProcessedBeatmapNotifier.SendNotification("All beatmaps processed."); BeatmapLog.SaveLog(); ProcessedBeatmapNotifier.SendNotification("You can view all new beatmaps in the log."); }