mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Make SampleInfo choose its own lookup name
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace osu.Game.Audio
|
||||
{
|
||||
@ -33,6 +34,12 @@ namespace osu.Game.Audio
|
||||
/// </summary>
|
||||
public int Volume;
|
||||
|
||||
public virtual IEnumerable<string> LookupNames => new[]
|
||||
{
|
||||
$"{Namespace}/{Bank}-{Name}",
|
||||
$"{Bank}-{Name}" // Without namespace as a fallback
|
||||
};
|
||||
|
||||
public SampleInfo Clone() => (SampleInfo)MemberwiseClone();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user