mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
remove bank default value
This commit is contained in:
parent
354cd23874
commit
f7c84030ac
@ -4,7 +4,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using osu.Game.Beatmaps.ControlPoints;
|
|
||||||
using osu.Game.Utils;
|
using osu.Game.Utils;
|
||||||
|
|
||||||
namespace osu.Game.Audio
|
namespace osu.Game.Audio
|
||||||
@ -33,7 +32,7 @@ namespace osu.Game.Audio
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The bank to load the sample from.
|
/// The bank to load the sample from.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly string Bank;
|
public readonly string? Bank;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An optional suffix to provide priority lookup. Falls back to non-suffixed <see cref="Name"/>.
|
/// An optional suffix to provide priority lookup. Falls back to non-suffixed <see cref="Name"/>.
|
||||||
@ -48,7 +47,7 @@ namespace osu.Game.Audio
|
|||||||
public HitSampleInfo(string name, string? bank = null, string? suffix = null, int volume = 0)
|
public HitSampleInfo(string name, string? bank = null, string? suffix = null, int volume = 0)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
Bank = bank ?? SampleControlPoint.DEFAULT_BANK;
|
Bank = bank;
|
||||||
Suffix = suffix;
|
Suffix = suffix;
|
||||||
Volume = volume;
|
Volume = volume;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user