Rename VideoStorage to VideoStore

This commit is contained in:
Shivam 2020-06-11 15:05:28 +02:00
parent 5d49b709b9
commit 2964b457a0
3 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ public TourneyVideo(string filename, bool drawFallbackGradient = false)
[BackgroundDependencyLoader]
private void load(TournamentStorage storage)
{
var stream = storage.VideoStorage.GetStream($@"{filename}");
var stream = storage.VideoStore.GetStream($@"{filename}");
if (stream != null)
{

View File

@ -15,7 +15,7 @@ namespace osu.Game.Tournament.IO
internal class TournamentStorage : WrappedStorage
{
private readonly GameHost host;
internal readonly TournamentVideoStorage VideoStorage;
internal readonly TournamentVideoResourceStore VideoStore;
private const string default_tournament = "default";
public TournamentStorage(GameHost host)
@ -39,7 +39,7 @@ public TournamentStorage(GameHost host)
ChangeTargetStorage(UnderlyingStorage.GetStorageForDirectory(default_tournament));
}
VideoStorage = new TournamentVideoStorage(this);
VideoStore = new TournamentVideoResourceStore(this);
Logger.Log("Using tournament storage: " + GetFullPath(string.Empty));
}
@ -118,9 +118,9 @@ private void attemptOperation(Action action, int attempts = 10)
}
}
internal class TournamentVideoStorage : NamespacedResourceStore<byte[]>
internal class TournamentVideoResourceStore : NamespacedResourceStore<byte[]>
{
public TournamentVideoStorage(Storage storage)
public TournamentVideoResourceStore(Storage storage)
: base(new StorageBackedResourceStore(storage), "videos")
{
AddExtension("m4v");

View File

@ -56,7 +56,7 @@ private void load(FrameworkConfigManager frameworkConfig)
dependencies.CacheAs(storage = new TournamentStorage(Host));
Textures.AddStore(new TextureLoaderStore(storage.VideoStorage));
Textures.AddStore(new TextureLoaderStore(storage.VideoStore));
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>