2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
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 ISkinSource
|
|
|
|
|
{
|
|
|
|
|
event Action SourceChanged;
|
|
|
|
|
|
|
|
|
|
Drawable GetDrawableComponent(string componentName);
|
|
|
|
|
|
|
|
|
|
Texture GetTexture(string componentName);
|
|
|
|
|
|
|
|
|
|
SampleChannel GetSample(string sampleName);
|
|
|
|
|
|
2019-01-07 19:12:39 +08:00
|
|
|
|
TValue GetValue<TConfiguration, TValue>(Func<TConfiguration, TValue> query) where TConfiguration : SkinConfiguration;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|