mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Rename to TournamentStorage
This commit is contained in:
parent
17cd9569ed
commit
9a20ffa8a3
@ -27,7 +27,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(NewTournamentStorage storage)
|
private void load(TournamentStorage storage)
|
||||||
{
|
{
|
||||||
var stream = storage.VideoStorage.GetStream($@"{filename}");
|
var stream = storage.VideoStorage.GetStream($@"{filename}");
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Tournament
|
|||||||
|
|
||||||
private Storage storage;
|
private Storage storage;
|
||||||
|
|
||||||
private NewTournamentStorage newTournamentStorage;
|
private TournamentStorage tournamentStorage;
|
||||||
|
|
||||||
private DependencyContainer dependencies;
|
private DependencyContainer dependencies;
|
||||||
|
|
||||||
@ -58,11 +58,11 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
Resources.AddStore(new DllResourceStore(typeof(TournamentGameBase).Assembly));
|
Resources.AddStore(new DllResourceStore(typeof(TournamentGameBase).Assembly));
|
||||||
|
|
||||||
dependencies.CacheAs(newTournamentStorage = new NewTournamentStorage(Host));
|
dependencies.CacheAs(tournamentStorage = new TournamentStorage(Host));
|
||||||
|
|
||||||
Textures.AddStore(new TextureLoaderStore(newTournamentStorage.VideoStorage));
|
Textures.AddStore(new TextureLoaderStore(tournamentStorage.VideoStorage));
|
||||||
|
|
||||||
this.storage = newTournamentStorage;
|
this.storage = tournamentStorage;
|
||||||
|
|
||||||
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
||||||
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
||||||
|
@ -20,13 +20,13 @@ namespace osu.Game.Tournament
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class NewTournamentStorage : WrappedStorage
|
internal class TournamentStorage : WrappedStorage
|
||||||
{
|
{
|
||||||
private readonly GameHost host;
|
private readonly GameHost host;
|
||||||
private readonly TournamentStorageManager storageConfig;
|
private readonly TournamentStorageManager storageConfig;
|
||||||
public readonly TournamentVideoStorage VideoStorage;
|
public readonly TournamentVideoStorage VideoStorage;
|
||||||
|
|
||||||
public NewTournamentStorage(GameHost host)
|
public TournamentStorage(GameHost host)
|
||||||
: base(host.Storage, string.Empty)
|
: base(host.Storage, string.Empty)
|
||||||
{
|
{
|
||||||
this.host = host;
|
this.host = host;
|
||||||
|
Loading…
Reference in New Issue
Block a user