1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 02:42:54 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableManiaHitObject.cs

39 lines
1.2 KiB
C#
Raw Normal View History

2017-05-03 14:50:42 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Mania.Judgements;
using osu.Game.Rulesets.Objects.Drawables;
namespace osu.Game.Rulesets.Mania.Objects.Drawables
{
public abstract class DrawableManiaHitObject<TObject> : DrawableHitObject<ManiaHitObject, ManiaJudgement>
where TObject : ManiaHitObject
{
public new TObject HitObject;
2017-05-11 13:11:52 +08:00
protected DrawableManiaHitObject(TObject hitObject)
2017-05-03 14:50:42 +08:00
: base(hitObject)
{
HitObject = hitObject;
RelativePositionAxes = Axes.Y;
Y = (float)HitObject.StartTime;
2017-05-03 14:50:42 +08:00
}
public override Color4 AccentColour
{
get { return base.AccentColour; }
set
{
if (base.AccentColour == value)
return;
base.AccentColour = value;
}
}
protected override ManiaJudgement CreateJudgement() => new ManiaJudgement();
2017-05-03 14:50:42 +08:00
}
}