mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Move classes to separate files
This commit is contained in:
@ -5,7 +5,6 @@ using System;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Rulesets.Catch.Skinning.Default;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
@ -61,40 +60,4 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
|
||||
base.FreeAfterUse();
|
||||
}
|
||||
}
|
||||
|
||||
public class CaughtFruit : CaughtObject, IHasFruitState
|
||||
{
|
||||
public Bindable<FruitVisualRepresentation> VisualRepresentation { get; } = new Bindable<FruitVisualRepresentation>();
|
||||
|
||||
public CaughtFruit()
|
||||
: base(CatchSkinComponents.Fruit, _ => new FruitPiece())
|
||||
{
|
||||
}
|
||||
|
||||
public override void CopyStateFrom(IHasCatchObjectState objectState)
|
||||
{
|
||||
base.CopyStateFrom(objectState);
|
||||
|
||||
var fruitState = (IHasFruitState)objectState;
|
||||
VisualRepresentation.Value = fruitState.VisualRepresentation.Value;
|
||||
}
|
||||
}
|
||||
|
||||
public class CaughtBanana : CaughtObject
|
||||
{
|
||||
public CaughtBanana()
|
||||
: base(CatchSkinComponents.Banana, _ => new BananaPiece())
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class CaughtDroplet : CaughtObject
|
||||
{
|
||||
public override bool StaysOnPlate => false;
|
||||
|
||||
public CaughtDroplet()
|
||||
: base(CatchSkinComponents.Droplet, _ => new DropletPiece())
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user