From 2de25c23b44faf41ad6a37f6e68d57f9d735a856 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 6 Mar 2017 15:20:55 +0900 Subject: [PATCH] Make Mods IEnumerable. --- osu.Game/Beatmaps/WorkingBeatmap.cs | 3 ++- osu.Game/Overlays/Mods/ModSelectOverlay.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Game/Beatmaps/WorkingBeatmap.cs b/osu.Game/Beatmaps/WorkingBeatmap.cs index 3569eebb75..1d4047ea45 100644 --- a/osu.Game/Beatmaps/WorkingBeatmap.cs +++ b/osu.Game/Beatmaps/WorkingBeatmap.cs @@ -2,6 +2,7 @@ // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; +using System.Collections.Generic; using System.IO; using osu.Framework.Audio.Track; using osu.Framework.Configuration; @@ -27,7 +28,7 @@ namespace osu.Game.Beatmaps public PlayMode PlayMode => beatmap?.BeatmapInfo?.Mode > PlayMode.Osu ? beatmap.BeatmapInfo.Mode : PreferredPlayMode ?? PlayMode.Osu; - public readonly Bindable Mods = new Bindable(); + public readonly Bindable> Mods = new Bindable>(); public readonly bool WithStoryboard; diff --git a/osu.Game/Overlays/Mods/ModSelectOverlay.cs b/osu.Game/Overlays/Mods/ModSelectOverlay.cs index 03b3091066..1fa44dfd01 100644 --- a/osu.Game/Overlays/Mods/ModSelectOverlay.cs +++ b/osu.Game/Overlays/Mods/ModSelectOverlay.cs @@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Mods private FillFlowContainer modSectionsContainer; - public readonly Bindable SelectedMods = new Bindable(); + public readonly Bindable> SelectedMods = new Bindable>(); public readonly Bindable PlayMode = new Bindable();