mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 17:33:15 +08:00
Removes reliance on string lookups and better defines elements for introduction into database
26 lines
746 B
C#
26 lines
746 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;
|
|
using osu.Game.Audio;
|
|
|
|
namespace osu.Game.Skinning
|
|
{
|
|
/// <summary>
|
|
/// Provides access to skinnable elements.
|
|
/// </summary>
|
|
public interface ISkin
|
|
{
|
|
Drawable GetDrawableComponent(ISkinComponent component);
|
|
|
|
Texture GetTexture(string componentName);
|
|
|
|
SampleChannel GetSample(ISampleInfo sampleInfo);
|
|
|
|
TValue GetValue<TConfiguration, TValue>(Func<TConfiguration, TValue> query) where TConfiguration : SkinConfiguration;
|
|
}
|
|
}
|