1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00
osu-lazer/osu.Game/Modes/Objects/HitObject.cs

31 lines
831 B
C#
Raw Normal View History

// Copyright (c) 2007-2017 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;
2016-11-02 17:08:08 +08:00
using OpenTK.Graphics;
2016-11-14 17:03:20 +08:00
namespace osu.Game.Modes.Objects
{
/// <summary>
/// A hitobject describes a point in a beatmap
/// </summary>
2016-09-26 14:07:29 +08:00
public abstract class HitObject
{
public double StartTime;
public virtual double EndTime => StartTime;
2016-11-02 17:08:08 +08:00
public bool NewCombo { get; set; }
public Color4 Colour = new Color4(17, 136, 170, 255);
2016-11-02 17:08:08 +08:00
public double Duration => EndTime - StartTime;
2016-09-02 17:31:32 +08:00
public HitSampleInfo Sample;
2017-02-15 22:23:55 +08:00
public int ComboIndex;
public virtual void SetDefaultsFromBeatmap(Beatmap beatmap) { }
}
}