From b40c0d890384a7a4b624681a874f5fa8cffd22d3 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 25 Feb 2023 11:25:40 -0800 Subject: [PATCH] Rename to prevent duplicated naming. --- .../BeatmapStageElementCategoryChangeHandlerTest.cs | 4 ++-- .../Beatmaps/BeatmapStageElementCategoryChangeHandler.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke.Tests/Editor/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandlerTest.cs b/osu.Game.Rulesets.Karaoke.Tests/Editor/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandlerTest.cs index 8c76a11ba..4892deb0b 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Editor/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandlerTest.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Editor/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandlerTest.cs @@ -243,8 +243,8 @@ private static ClassicLyricLayoutCategory getStageCategory(KaraokeBeatmap beatma public partial class TestBeatmapStageElementCategoryChangeHandler : BeatmapStageElementCategoryChangeHandler { - public TestBeatmapStageElementCategoryChangeHandler(Func, StageElementCategory> action) - : base(action) + public TestBeatmapStageElementCategoryChangeHandler(Func, StageElementCategory> stageCategoryAction) + : base(stageCategoryAction) { } } diff --git a/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandler.cs b/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandler.cs index a4e18b9e3..fa208f5c8 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandler.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/Beatmaps/BeatmapStageElementCategoryChangeHandler.cs @@ -14,11 +14,11 @@ public partial class BeatmapStageElementCategoryChangeHandler where THitObject : KaraokeHitObject, IHasPrimaryKey { - private readonly Func, StageElementCategory> action; + private readonly Func, StageElementCategory> stageCategoryAction; - public BeatmapStageElementCategoryChangeHandler(Func, StageElementCategory> action) + public BeatmapStageElementCategoryChangeHandler(Func, StageElementCategory> stageCategoryAction) { - this.action = action; + this.stageCategoryAction = stageCategoryAction; } public void AddElement(Action? action = null) @@ -104,7 +104,7 @@ private void performStageInfoChanged(Action { - var stageCategory = action(beatmap.StageInfos); + var stageCategory = stageCategoryAction(beatmap.StageInfos); stageAction(stageCategory); }); }