mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 23:32:55 +08:00
70ecf48ca7
I didn't move _every_ color here, but most of them. The ones I left behind are mostly just shades of gray. Closes #126
30 lines
807 B
C#
30 lines
807 B
C#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Beatmaps.Samples;
|
|
using OpenTK.Graphics;
|
|
using osu.Game.Graphics;
|
|
|
|
namespace osu.Game.Modes.Objects
|
|
{
|
|
/// <summary>
|
|
/// A hitobject describes a point in a beatmap
|
|
/// </summary>
|
|
public abstract class HitObject
|
|
{
|
|
public double StartTime;
|
|
public virtual double EndTime => StartTime;
|
|
|
|
public bool NewCombo { get; set; }
|
|
|
|
public Color4 Colour = OsuColor.Combo1;
|
|
|
|
public double Duration => EndTime - StartTime;
|
|
|
|
public HitSampleInfo Sample;
|
|
|
|
public virtual void SetDefaultsFromBeatmap(Beatmap beatmap) { }
|
|
}
|
|
}
|