1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 02:49:53 +08:00
Files
osu-lazer/osu.Game.Rulesets.Shape/Objects/Drawables/DrawableShapeHitObject.cs
T
2018-03-19 12:07:10 -04:00

52 lines
1.3 KiB
C#

using osu.Game.Rulesets.Objects.Drawables;
using System;
using System.ComponentModel;
using osu.Game.Rulesets.Shape.Judgements;
using osu.Framework.Input.Bindings;
using Symcol.Rulesets.Core.HitObjects;
namespace osu.Game.Rulesets.Shape.Objects.Drawables
{
public abstract class DrawableShapeHitObject<ShapeObject> : DrawableSymcolHitObject<ShapeHitObject>, IKeyBindingHandler<ShapeAction>
where ShapeObject : ShapeHitObject
{
public float TIME_PREEMPT = 800;
public float TIME_FADEIN = 400;
public float TIME_FADEOUT = 400;
public DrawableShapeHitObject(ShapeHitObject hitObject)
: base(hitObject)
{
}
protected override void UpdateState(ArmedState state)
{
}
protected virtual void UpdatePreemptState()
{
}
protected virtual void UpdateInitialState()
{
}
public abstract bool OnPressed(ShapeAction action);
public virtual bool OnReleased(ShapeAction action) => false;
}
public enum ComboResult
{
[Description(@"")]
None,
[Description(@"Good")]
Good,
[Description(@"Amazing!")]
Perfect
}
}