2020-12-21 06:14:32 +00: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.
|
|
|
|
|
|
|
|
using osu.Framework.Audio;
|
2022-08-02 10:50:57 +00:00
|
|
|
using osu.Framework.Graphics.Rendering;
|
2020-12-21 06:14:32 +00:00
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
using osu.Framework.IO.Stores;
|
2021-12-14 05:19:43 +00:00
|
|
|
using osu.Game.Database;
|
2020-12-21 06:14:32 +00:00
|
|
|
|
|
|
|
namespace osu.Game.IO
|
|
|
|
{
|
|
|
|
public interface IStorageResourceProvider
|
|
|
|
{
|
2022-08-02 10:50:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The game renderer.
|
|
|
|
/// </summary>
|
|
|
|
IRenderer Renderer { get; }
|
|
|
|
|
2020-12-21 06:14:32 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Retrieve the game-wide audio manager.
|
|
|
|
/// </summary>
|
2022-08-08 04:05:59 +00:00
|
|
|
AudioManager? AudioManager { get; }
|
2020-12-21 06:14:32 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Access game-wide user files.
|
|
|
|
/// </summary>
|
|
|
|
IResourceStore<byte[]> Files { get; }
|
|
|
|
|
2021-05-31 09:37:32 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Access game-wide resources.
|
|
|
|
/// </summary>
|
|
|
|
IResourceStore<byte[]> Resources { get; }
|
|
|
|
|
2021-12-14 05:19:43 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Access realm.
|
|
|
|
/// </summary>
|
2022-01-24 10:59:58 +00:00
|
|
|
RealmAccess RealmAccess { get; }
|
2021-12-14 05:19:43 +00:00
|
|
|
|
2020-12-21 06:14:32 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Create a texture loader store based on an underlying data store.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="underlyingStore">The underlying provider of texture data (in arbitrary image formats).</param>
|
|
|
|
/// <returns>A texture loader store.</returns>
|
2024-02-02 10:48:13 +00:00
|
|
|
IResourceStore<TextureUpload>? CreateTextureLoaderStore(IResourceStore<byte[]> underlyingStore);
|
2020-12-21 06:14:32 +00:00
|
|
|
}
|
|
|
|
}
|