mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Rename AllowSampleLookup
argument to something saner
This commit is contained in:
parent
dc21c8901e
commit
724b601d2a
@ -57,12 +57,12 @@ namespace osu.Game.Skinning
|
||||
return beatmapSkins.Value;
|
||||
}
|
||||
|
||||
protected override bool AllowSampleLookup(ISampleInfo componentName)
|
||||
protected override bool AllowSampleLookup(ISampleInfo sampleInfo)
|
||||
{
|
||||
if (beatmapSkins == null)
|
||||
throw new InvalidOperationException($"{nameof(BeatmapSkinProvidingContainer)} needs to be loaded before being consumed.");
|
||||
|
||||
return componentName is StoryboardSampleInfo || beatmapHitsounds.Value;
|
||||
return sampleInfo is StoryboardSampleInfo || beatmapHitsounds.Value;
|
||||
}
|
||||
|
||||
public BeatmapSkinProvidingContainer(ISkin skin)
|
||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
protected virtual bool AllowTextureLookup(string componentName) => true;
|
||||
|
||||
protected virtual bool AllowSampleLookup(ISampleInfo componentName) => true;
|
||||
protected virtual bool AllowSampleLookup(ISampleInfo sampleInfo) => true;
|
||||
|
||||
protected virtual bool AllowConfigurationLookup => true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user