mirror of
https://github.com/ppy/osu.git
synced 2025-03-30 11:57:21 +08:00
Adds base classes for difficulty calculations, hooks them up with carousel container, and adds a port of the osu difficulty calculator.
18 lines
449 B
C#
18 lines
449 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
namespace osu.Game.Beatmaps.Timing
|
|
{
|
|
class TimingChange : ControlPoint
|
|
{
|
|
public double BeatLength;
|
|
|
|
public TimingChange(double beatLength)
|
|
{
|
|
BeatLength = beatLength;
|
|
}
|
|
|
|
public double BPM => 60000 / BeatLength;
|
|
}
|
|
}
|