Rename AllowSampleLookup argument to something saner

This commit is contained in:
Bartłomiej Dach
2021-12-26 14:29:07 +01:00
parent dc21c8901e
commit 724b601d2a
2 changed files with 3 additions and 3 deletions

View File

@ -57,12 +57,12 @@ namespace osu.Game.Skinning
return beatmapSkins.Value; return beatmapSkins.Value;
} }
protected override bool AllowSampleLookup(ISampleInfo componentName) protected override bool AllowSampleLookup(ISampleInfo sampleInfo)
{ {
if (beatmapSkins == null) if (beatmapSkins == null)
throw new InvalidOperationException($"{nameof(BeatmapSkinProvidingContainer)} needs to be loaded before being consumed."); 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) public BeatmapSkinProvidingContainer(ISkin skin)

View File

@ -35,7 +35,7 @@ namespace osu.Game.Skinning
protected virtual bool AllowTextureLookup(string componentName) => true; 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; protected virtual bool AllowConfigurationLookup => true;