Skip to content

Commit

Permalink
Rename to prevent duplicated naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Feb 25, 2023
1 parent 1473435 commit b40c0d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ private static ClassicLyricLayoutCategory getStageCategory(KaraokeBeatmap beatma

public partial class TestBeatmapStageElementCategoryChangeHandler : BeatmapStageElementCategoryChangeHandler<ClassicLyricLayout, Lyric>
{
public TestBeatmapStageElementCategoryChangeHandler(Func<IEnumerable<StageInfo>, StageElementCategory<ClassicLyricLayout, Lyric>> action)
: base(action)
public TestBeatmapStageElementCategoryChangeHandler(Func<IEnumerable<StageInfo>, StageElementCategory<ClassicLyricLayout, Lyric>> stageCategoryAction)
: base(stageCategoryAction)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public partial class BeatmapStageElementCategoryChangeHandler<TStageElement, THi
where TStageElement : class, IStageElement, IComparable<TStageElement>
where THitObject : KaraokeHitObject, IHasPrimaryKey
{
private readonly Func<IEnumerable<StageInfo>, StageElementCategory<TStageElement, THitObject>> action;
private readonly Func<IEnumerable<StageInfo>, StageElementCategory<TStageElement, THitObject>> stageCategoryAction;

public BeatmapStageElementCategoryChangeHandler(Func<IEnumerable<StageInfo>, StageElementCategory<TStageElement, THitObject>> action)
public BeatmapStageElementCategoryChangeHandler(Func<IEnumerable<StageInfo>, StageElementCategory<TStageElement, THitObject>> stageCategoryAction)
{
this.action = action;
this.stageCategoryAction = stageCategoryAction;
}

public void AddElement(Action<TStageElement>? action = null)
Expand Down Expand Up @@ -104,7 +104,7 @@ private void performStageInfoChanged(Action<StageElementCategory<TStageElement,
{
PerformBeatmapChanged(beatmap =>
{
var stageCategory = action(beatmap.StageInfos);
var stageCategory = stageCategoryAction(beatmap.StageInfos);
stageAction(stageCategory);
});
}
Expand Down

0 comments on commit b40c0d8

Please sign in to comment.