mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Determine SampleInfo defaults in DrawableHitObject
This commit is contained in:
@ -12,6 +12,7 @@ using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Objects.Types;
|
||||
using OpenTK;
|
||||
using osu.Framework.Lists;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
|
||||
namespace osu.Game.Rulesets.Catch.Objects
|
||||
{
|
||||
@ -29,9 +30,14 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
public double Velocity;
|
||||
public double TickDistance;
|
||||
|
||||
private ControlPointInfo controlPointInfo;
|
||||
private BeatmapDifficulty difficulty;
|
||||
|
||||
public override void ApplyDefaults(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
|
||||
{
|
||||
base.ApplyDefaults(controlPointInfo, difficulty);
|
||||
this.controlPointInfo = controlPointInfo;
|
||||
this.difficulty = difficulty;
|
||||
|
||||
TimingControlPoint timingPoint = controlPointInfo.TimingPointAt(StartTime);
|
||||
DifficultyControlPoint difficultyPoint = controlPointInfo.DifficultyPointAt(StartTime);
|
||||
@ -124,6 +130,8 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
});
|
||||
}
|
||||
|
||||
ticks.ForEach(t => t.ApplyDefaults(controlPointInfo, difficulty));
|
||||
|
||||
return ticks;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user