1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

ICatcherPiece -> ICatcherSprite

This commit is contained in:
ekrctb 2021-06-08 22:10:13 +09:00
parent 194c78f67a
commit 7df971a970
5 changed files with 5 additions and 7 deletions

View File

@ -12,7 +12,7 @@ using osu.Game.Rulesets.Catch.UI;
namespace osu.Game.Rulesets.Catch.Skinning.Default
{
public class DefaultCatcher : CompositeDrawable, ICatcherPiece
public class DefaultCatcher : CompositeDrawable, ICatcherSprite
{
public Bindable<CatcherAnimationState> CurrentState { get; } = new Bindable<CatcherAnimationState>();

View File

@ -5,7 +5,7 @@ using osu.Framework.Graphics.Textures;
namespace osu.Game.Rulesets.Catch.Skinning
{
public interface ICatcherPiece
public interface ICatcherSprite
{
Texture CurrentTexture { get; }
}

View File

@ -17,7 +17,7 @@ using osuTK;
namespace osu.Game.Rulesets.Catch.Skinning.Legacy
{
public class LegacyCatcherNew : CompositeDrawable, ICatcherPiece
public class LegacyCatcherNew : CompositeDrawable, ICatcherSprite
{
public Bindable<CatcherAnimationState> CurrentState { get; } = new Bindable<CatcherAnimationState>();

View File

@ -12,7 +12,7 @@ using osuTK;
namespace osu.Game.Rulesets.Catch.Skinning.Legacy
{
public class LegacyCatcherOld : CompositeDrawable, ICatcherPiece
public class LegacyCatcherOld : CompositeDrawable, ICatcherSprite
{
public Texture CurrentTexture => (InternalChild as TextureAnimation)?.CurrentFrame ?? (InternalChild as Sprite)?.Texture;

View File

@ -89,7 +89,7 @@ namespace osu.Game.Rulesets.Catch.UI
/// </summary>
public const float ALLOWED_CATCH_RANGE = 0.8f;
internal Texture CurrentTexture => currentCatcherPiece.CurrentTexture;
internal Texture CurrentTexture => ((ICatcherSprite)currentCatcher.Drawable).CurrentTexture;
private bool dashing;
@ -113,8 +113,6 @@ namespace osu.Game.Rulesets.Catch.UI
private readonly SkinnableDrawable currentCatcher;
private ICatcherPiece currentCatcherPiece => (ICatcherPiece)currentCatcher.Drawable;
private Color4 hyperDashColour = DEFAULT_HYPER_DASH_COLOUR;
private Color4 hyperDashEndGlowColour = DEFAULT_HYPER_DASH_COLOUR;