mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Add base barline.
This commit is contained in:
parent
7cbc5b24c8
commit
b05a12372a
28
osu.Game.Modes.Taiko/Objects/BarLine.cs
Normal file
28
osu.Game.Modes.Taiko/Objects/BarLine.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using osu.Game.Beatmaps.Timing;
|
||||
using osu.Game.Database;
|
||||
|
||||
namespace osu.Game.Modes.Taiko.Objects
|
||||
{
|
||||
public class BarLine
|
||||
{
|
||||
/// <summary>
|
||||
/// The start time of the control point this bar line represents.
|
||||
/// </summary>
|
||||
public double StartTime;
|
||||
|
||||
/// <summary>
|
||||
/// The time to scroll in the bar line.
|
||||
/// </summary>
|
||||
public double PreEmpt;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this is a major bar line (affects display).
|
||||
/// </summary>
|
||||
public bool IsMajor;
|
||||
|
||||
public void ApplyDefaults(TimingInfo timing, BeatmapDifficulty difficulty)
|
||||
{
|
||||
PreEmpt = 600 / (timing.SliderVelocityAt(StartTime) * difficulty.SliderMultiplier) * 1000;
|
||||
}
|
||||
}
|
||||
}
|
@ -50,6 +50,7 @@
|
||||
<Compile Include="Beatmaps\TaikoBeatmapConverter.cs" />
|
||||
<Compile Include="Beatmaps\TaikoBeatmapProcessor.cs" />
|
||||
<Compile Include="Judgements\TaikoJudgementInfo.cs" />
|
||||
<Compile Include="Objects\BarLine.cs" />
|
||||
<Compile Include="TaikoDifficultyCalculator.cs" />
|
||||
<Compile Include="Objects\Drawable\DrawableTaikoHit.cs" />
|
||||
<Compile Include="Objects\TaikoHitObject.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user