Abstract class + move AccentColour to base.

This commit is contained in:
smoogipooo
2017-03-22 15:22:02 +09:00
parent 24e78d015e
commit aa8780797e
2 changed files with 8 additions and 15 deletions

View File

@ -11,6 +11,7 @@ using osu.Game.Beatmaps.Samples;
using osu.Game.Modes.Judgements;
using Container = osu.Framework.Graphics.Containers.Container;
using osu.Game.Modes.Objects.Types;
using OpenTK.Graphics;
namespace osu.Game.Modes.Objects.Drawables
{
@ -73,6 +74,11 @@ namespace osu.Game.Modes.Objects.Drawables
public TObject HitObject;
/// <summary>
/// The colour used for various elements of this DrawableHitObject.
/// </summary>
public Color4 AccentColour { get; protected set; }
protected DrawableHitObject(TObject hitObject)
{
HitObject = hitObject;