2020-12-21 14:14:32 +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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2020-12-21 14:14:32 +08:00
|
|
|
using osu.Framework.Audio;
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
using osu.Framework.IO.Stores;
|
2021-12-14 13:19:43 +08:00
|
|
|
using osu.Game.Database;
|
2020-12-21 14:14:32 +08:00
|
|
|
|
|
|
|
namespace osu.Game.IO
|
|
|
|
{
|
|
|
|
public interface IStorageResourceProvider
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Retrieve the game-wide audio manager.
|
|
|
|
/// </summary>
|
|
|
|
AudioManager AudioManager { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Access game-wide user files.
|
|
|
|
/// </summary>
|
|
|
|
IResourceStore<byte[]> Files { get; }
|
|
|
|
|
2021-05-31 17:37:32 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Access game-wide resources.
|
|
|
|
/// </summary>
|
|
|
|
IResourceStore<byte[]> Resources { get; }
|
|
|
|
|
2021-12-14 13:19:43 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Access realm.
|
|
|
|
/// </summary>
|
2022-01-24 18:59:58 +08:00
|
|
|
RealmAccess RealmAccess { get; }
|
2021-12-14 13:19:43 +08:00
|
|
|
|
2020-12-21 14:14:32 +08: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>
|
|
|
|
IResourceStore<TextureUpload> CreateTextureLoaderStore(IResourceStore<byte[]> underlyingStore);
|
|
|
|
}
|
|
|
|
}
|