mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 23:07:44 +08:00
25 lines
715 B
C#
25 lines
715 B
C#
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||
|
// See the LICENCE file in the repository root for full licence text.
|
||
|
|
||
|
using System;
|
||
|
using osu.Framework.Audio.Sample;
|
||
|
using osu.Framework.Graphics;
|
||
|
using osu.Framework.Graphics.Textures;
|
||
|
|
||
|
namespace osu.Game.Skinning
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Provides access to skinnable elements.
|
||
|
/// </summary>
|
||
|
public interface ISkin
|
||
|
{
|
||
|
Drawable GetDrawableComponent(string componentName);
|
||
|
|
||
|
Texture GetTexture(string componentName);
|
||
|
|
||
|
SampleChannel GetSample(string sampleName);
|
||
|
|
||
|
TValue GetValue<TConfiguration, TValue>(Func<TConfiguration, TValue> query) where TConfiguration : SkinConfiguration;
|
||
|
}
|
||
|
}
|