mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add class constraint
This commit is contained in:
@ -12,7 +12,8 @@ namespace osu.Game.Rulesets.Mods
|
||||
{
|
||||
public abstract BindableNumber<double> SpeedChange { get; }
|
||||
|
||||
public virtual void ApplyToTrack<T>(T track) where T : ITrack, IAdjustableAudioComponent
|
||||
public virtual void ApplyToTrack<T>(T track)
|
||||
where T : class, ITrack, IAdjustableAudioComponent
|
||||
{
|
||||
track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
|
||||
}
|
||||
|
Reference in New Issue
Block a user