Skip to content

Commit

Permalink
EmptyDisplayable -> Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Sep 12, 2024
1 parent f3c3885 commit 3bac691
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions OngekiFumenEditor/Base/IDisplayableObject.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;

namespace OngekiFumenEditor.Base
{
public interface IDisplayableObject
{
static IEnumerable<IDisplayableObject> EmptyDisplayable { get; } = new IDisplayableObject[0];
public interface IDisplayableObject
{
public static IEnumerable<IDisplayableObject> Empty { get; } = Array.Empty<IDisplayableObject>();

bool CheckVisiable(TGrid minVisibleTGrid, TGrid maxVisibleTGrid);
bool CheckVisiable(TGrid minVisibleTGrid, TGrid maxVisibleTGrid);

IEnumerable<IDisplayableObject> GetDisplayableObjects();
}
IEnumerable<IDisplayableObject> GetDisplayableObjects();
}
}
2 changes: 1 addition & 1 deletion OngekiFumenEditor/Base/OngekiObjects/LaneBlockArea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class LaneBlockAreaEndIndicator : OngekiTimelineObjectBase

public LaneBlockArea RefLaneBlockArea { get; internal protected set; }

public override IEnumerable<IDisplayableObject> GetDisplayableObjects() => IDisplayableObject.EmptyDisplayable;
public override IEnumerable<IDisplayableObject> GetDisplayableObjects() => IDisplayableObject.Empty;

private bool tGridHasSet;

Expand Down
2 changes: 1 addition & 1 deletion OngekiFumenEditor/Base/OngekiObjects/Soflan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public SoflanEndIndicator()

public Soflan RefSoflan { get; internal protected set; }

public override IEnumerable<IDisplayableObject> GetDisplayableObjects() => IDisplayableObject.EmptyDisplayable;
public override IEnumerable<IDisplayableObject> GetDisplayableObjects() => IDisplayableObject.Empty;

public override TGrid TGrid
{
Expand Down

0 comments on commit 3bac691

Please sign in to comment.