Remove generics from IApplicableToTrack

This commit is contained in:
smoogipoo
2020-08-06 18:25:34 +09:00
parent c8ebbc8594
commit 7c3ae4ed42
5 changed files with 11 additions and 13 deletions

View File

@ -12,10 +12,9 @@ namespace osu.Game.Rulesets.Mods
{
public abstract BindableNumber<double> SpeedChange { get; }
public virtual void ApplyToTrack<T>(T track)
where T : class, ITrack, IAdjustableAudioComponent
public virtual void ApplyToTrack(ITrack track)
{
track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
(track as IAdjustableAudioComponent)?.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
}
public virtual void ApplyToSample(SampleChannel sample)