Add GetTexture method to ISkinSource

Used to shortcut lookup checks without potentially expensive drawable creation overhead.
This commit is contained in:
Dean Herbert
2018-03-20 16:28:39 +09:00
parent 9ad4e9284a
commit f03abb3145
6 changed files with 18 additions and 1 deletions

View File

@ -4,6 +4,7 @@
using System;
using osu.Framework.Audio.Sample;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Game.Rulesets.Objects.Types;
using OpenTK.Graphics;
@ -18,6 +19,8 @@ namespace osu.Game.Skinning
Drawable GetDrawableComponent(string componentName);
Texture GetTexture(string componentName);
SampleChannel GetSample(string sampleName);
Color4? GetComboColour(IHasComboIndex comboObject);