mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:42:56 +08:00
Fix potentially incorrect override
This commit is contained in:
parent
2840405112
commit
e19ef9627a
@ -486,10 +486,10 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
IsLayered = isLayered;
|
IsLayered = isLayered;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override HitSampleInfo With(Optional<string> name = default, Optional<string?> bank = default, Optional<string?> suffix = default, Optional<int> volume = default)
|
public sealed override HitSampleInfo With(Optional<string> name = default, Optional<string?> bank = default, Optional<string?> suffix = default, Optional<int> volume = default)
|
||||||
=> With(name, bank, volume);
|
=> With(name, bank, volume);
|
||||||
|
|
||||||
public LegacyHitSampleInfo With(Optional<string> name = default, Optional<string?> bank = default, Optional<int> volume = default, Optional<int> customSampleBank = default,
|
public virtual LegacyHitSampleInfo With(Optional<string> name = default, Optional<string?> bank = default, Optional<int> volume = default, Optional<int> customSampleBank = default,
|
||||||
Optional<bool> isLayered = default)
|
Optional<bool> isLayered = default)
|
||||||
=> new LegacyHitSampleInfo(name.GetOr(Name), bank.GetOr(Bank), volume.GetOr(Volume), customSampleBank.GetOr(CustomSampleBank), isLayered.GetOr(IsLayered));
|
=> new LegacyHitSampleInfo(name.GetOr(Name), bank.GetOr(Bank), volume.GetOr(Volume), customSampleBank.GetOr(CustomSampleBank), isLayered.GetOr(IsLayered));
|
||||||
|
|
||||||
@ -520,7 +520,8 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
Path.ChangeExtension(Filename, null)
|
Path.ChangeExtension(Filename, null)
|
||||||
};
|
};
|
||||||
|
|
||||||
public override HitSampleInfo With(Optional<string> name = default, Optional<string?> bank = default, Optional<string?> suffix = default, Optional<int> volume = default)
|
public sealed override LegacyHitSampleInfo With(Optional<string> name = default, Optional<string?> bank = default, Optional<int> volume = default, Optional<int> customSampleBank = default,
|
||||||
|
Optional<bool> isLayered = default)
|
||||||
=> new FileHitSampleInfo(Filename, volume.GetOr(Volume));
|
=> new FileHitSampleInfo(Filename, volume.GetOr(Volume));
|
||||||
|
|
||||||
public bool Equals(FileHitSampleInfo? other)
|
public bool Equals(FileHitSampleInfo? other)
|
||||||
|
Loading…
Reference in New Issue
Block a user