mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 21:47:31 +09:00
Drop complicated type constraints
This commit is contained in:
parent
80574423cb
commit
96a6e30a21
@ -19,8 +19,7 @@ using osu.Framework.Input;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.Options
|
namespace osu.Game.Overlays.Options
|
||||||
{
|
{
|
||||||
public class SliderOption<T> : FlowContainer
|
public class SliderOption<T> : FlowContainer where T : struct
|
||||||
where T : struct, IComparable, IFormattable, IConvertible, IComparable<T>, IEquatable<T>
|
|
||||||
{
|
{
|
||||||
private SliderBar<T> slider;
|
private SliderBar<T> slider;
|
||||||
private SpriteText text;
|
private SpriteText text;
|
||||||
@ -57,8 +56,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OsuSliderBar<U> : SliderBar<U>
|
private class OsuSliderBar<U> : SliderBar<U> where U : struct
|
||||||
where U : struct, IComparable, IFormattable, IConvertible, IComparable<U>, IEquatable<U>
|
|
||||||
{
|
{
|
||||||
private AudioSample sample;
|
private AudioSample sample;
|
||||||
private double lastSample;
|
private double lastSample;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user