mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 23:28:00 +09:00
Allow TimingControlPoint to be overridden
This commit is contained in:
parent
f8eaccddda
commit
b7499fa956
@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The beat length at this control point.
|
/// The beat length at this control point.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double BeatLength
|
public virtual double BeatLength
|
||||||
{
|
{
|
||||||
get => beatLength;
|
get => beatLength;
|
||||||
set => beatLength = MathHelper.Clamp(value, 6, 60000);
|
set => beatLength = MathHelper.Clamp(value, 6, 60000);
|
||||||
|
@ -318,12 +318,12 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
if (timingChange)
|
if (timingChange)
|
||||||
{
|
{
|
||||||
handleTimingControlPoint(new TimingControlPoint
|
var controlPoint = CreateTimingControlPoint();
|
||||||
{
|
controlPoint.Time = time;
|
||||||
Time = time,
|
controlPoint.BeatLength = beatLength;
|
||||||
BeatLength = beatLength,
|
controlPoint.TimeSignature = timeSignature;
|
||||||
TimeSignature = timeSignature
|
|
||||||
});
|
handleTimingControlPoint(controlPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDifficultyControlPoint(new DifficultyControlPoint
|
handleDifficultyControlPoint(new DifficultyControlPoint
|
||||||
@ -418,6 +418,8 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private double getOffsetTime(double time) => time + (ApplyOffsets ? offset : 0);
|
private double getOffsetTime(double time) => time + (ApplyOffsets ? offset : 0);
|
||||||
|
|
||||||
|
protected virtual TimingControlPoint CreateTimingControlPoint() => new TimingControlPoint();
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
internal enum EffectFlags
|
internal enum EffectFlags
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user