1
0
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:
Shivam 2020-06-08 00:47:47 +02:00
parent 17cd9569ed
commit 9a20ffa8a3
3 changed files with 7 additions and 7 deletions

View File

@ -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}");

View File

@ -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(() =>

View File

@ -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;