From f0809801c5784f68c947cda253fa18467cb96564 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sun, 7 Nov 2021 11:34:37 +0900 Subject: [PATCH] Update remaining actions to events --- osu.Game/Beatmaps/BeatmapManager.cs | 12 ++++++------ osu.Game/Beatmaps/BeatmapModelManager.cs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/osu.Game/Beatmaps/BeatmapManager.cs b/osu.Game/Beatmaps/BeatmapManager.cs index 0f2cf6a730..b330cc2b4c 100644 --- a/osu.Game/Beatmaps/BeatmapManager.cs +++ b/osu.Game/Beatmaps/BeatmapManager.cs @@ -100,19 +100,19 @@ namespace osu.Game.Beatmaps /// /// Fired when a single difficulty has been hidden. /// - public Action BeatmapHidden + public event Action BeatmapHidden { - get => beatmapModelManager.BeatmapHidden; - set => beatmapModelManager.BeatmapHidden = value; + add => beatmapModelManager.BeatmapHidden += value; + remove => beatmapModelManager.BeatmapHidden -= value; } /// /// Fired when a single difficulty has been restored. /// - public Action BeatmapRestored + public event Action BeatmapRestored { - get => beatmapModelManager.BeatmapRestored; - set => beatmapModelManager.BeatmapRestored = value; + add => beatmapModelManager.BeatmapRestored += value; + remove => beatmapModelManager.BeatmapRestored -= value; } /// diff --git a/osu.Game/Beatmaps/BeatmapModelManager.cs b/osu.Game/Beatmaps/BeatmapModelManager.cs index 1a78a625d9..eb1bf598a4 100644 --- a/osu.Game/Beatmaps/BeatmapModelManager.cs +++ b/osu.Game/Beatmaps/BeatmapModelManager.cs @@ -36,12 +36,12 @@ namespace osu.Game.Beatmaps /// /// Fired when a single difficulty has been hidden. /// - public Action BeatmapHidden; + public event Action BeatmapHidden; /// /// Fired when a single difficulty has been restored. /// - public Action BeatmapRestored; + public event Action BeatmapRestored; /// /// An online lookup queue component which handles populating online beatmap metadata.