mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Fix typo in class name
This commit is contained in:
parent
10ea575384
commit
56c13148f1
@ -38,7 +38,7 @@ namespace osu.Game.Tests.Online
|
|||||||
private BeatmapSetInfo testBeatmapSet;
|
private BeatmapSetInfo testBeatmapSet;
|
||||||
|
|
||||||
private readonly Bindable<PlaylistItem> selectedItem = new Bindable<PlaylistItem>();
|
private readonly Bindable<PlaylistItem> selectedItem = new Bindable<PlaylistItem>();
|
||||||
private OnlinePlayBeatmapAvailablilityTracker availablilityTracker;
|
private OnlinePlayBeatmapAvailabilityTracker availabilityTracker;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(AudioManager audio, GameHost host)
|
private void load(AudioManager audio, GameHost host)
|
||||||
@ -67,7 +67,7 @@ namespace osu.Game.Tests.Online
|
|||||||
Ruleset = { Value = testBeatmapInfo.Ruleset },
|
Ruleset = { Value = testBeatmapInfo.Ruleset },
|
||||||
};
|
};
|
||||||
|
|
||||||
Child = availablilityTracker = new OnlinePlayBeatmapAvailablilityTracker
|
Child = availabilityTracker = new OnlinePlayBeatmapAvailabilityTracker
|
||||||
{
|
{
|
||||||
SelectedItem = { BindTarget = selectedItem, }
|
SelectedItem = { BindTarget = selectedItem, }
|
||||||
};
|
};
|
||||||
@ -118,7 +118,7 @@ namespace osu.Game.Tests.Online
|
|||||||
});
|
});
|
||||||
addAvailabilityCheckStep("state still not downloaded", BeatmapAvailability.NotDownloaded);
|
addAvailabilityCheckStep("state still not downloaded", BeatmapAvailability.NotDownloaded);
|
||||||
|
|
||||||
AddStep("recreate tracker", () => Child = availablilityTracker = new OnlinePlayBeatmapAvailablilityTracker
|
AddStep("recreate tracker", () => Child = availabilityTracker = new OnlinePlayBeatmapAvailabilityTracker
|
||||||
{
|
{
|
||||||
SelectedItem = { BindTarget = selectedItem }
|
SelectedItem = { BindTarget = selectedItem }
|
||||||
});
|
});
|
||||||
@ -127,7 +127,7 @@ namespace osu.Game.Tests.Online
|
|||||||
|
|
||||||
private void addAvailabilityCheckStep(string description, Func<BeatmapAvailability> expected)
|
private void addAvailabilityCheckStep(string description, Func<BeatmapAvailability> expected)
|
||||||
{
|
{
|
||||||
AddAssert(description, () => availablilityTracker.Availability.Value.Equals(expected.Invoke()));
|
AddAssert(description, () => availabilityTracker.Availability.Value.Equals(expected.Invoke()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static BeatmapInfo getTestBeatmapInfo(string archiveFile)
|
private static BeatmapInfo getTestBeatmapInfo(string archiveFile)
|
||||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
public class TestSceneMultiplayerReadyButton : MultiplayerTestScene
|
public class TestSceneMultiplayerReadyButton : MultiplayerTestScene
|
||||||
{
|
{
|
||||||
private MultiplayerReadyButton button;
|
private MultiplayerReadyButton button;
|
||||||
private OnlinePlayBeatmapAvailablilityTracker beatmapTracker;
|
private OnlinePlayBeatmapAvailabilityTracker beatmapTracker;
|
||||||
private BeatmapSetInfo importedSet;
|
private BeatmapSetInfo importedSet;
|
||||||
|
|
||||||
private readonly Bindable<PlaylistItem> selectedItem = new Bindable<PlaylistItem>();
|
private readonly Bindable<PlaylistItem> selectedItem = new Bindable<PlaylistItem>();
|
||||||
@ -44,7 +44,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
Dependencies.Cache(beatmaps = new BeatmapManager(LocalStorage, ContextFactory, rulesets, null, audio, host, Beatmap.Default));
|
Dependencies.Cache(beatmaps = new BeatmapManager(LocalStorage, ContextFactory, rulesets, null, audio, host, Beatmap.Default));
|
||||||
beatmaps.Import(TestResources.GetQuickTestBeatmapForImport()).Wait();
|
beatmaps.Import(TestResources.GetQuickTestBeatmapForImport()).Wait();
|
||||||
|
|
||||||
Add(beatmapTracker = new OnlinePlayBeatmapAvailablilityTracker
|
Add(beatmapTracker = new OnlinePlayBeatmapAvailabilityTracker
|
||||||
{
|
{
|
||||||
SelectedItem = { BindTarget = selectedItem }
|
SelectedItem = { BindTarget = selectedItem }
|
||||||
});
|
});
|
||||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Online.Rooms
|
|||||||
/// This differs from a regular download tracking composite as this accounts for the
|
/// This differs from a regular download tracking composite as this accounts for the
|
||||||
/// databased beatmap set's checksum, to disallow from playing with an altered version of the beatmap.
|
/// databased beatmap set's checksum, to disallow from playing with an altered version of the beatmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class OnlinePlayBeatmapAvailablilityTracker : DownloadTrackingComposite<BeatmapSetInfo, BeatmapManager>
|
public class OnlinePlayBeatmapAvailabilityTracker : DownloadTrackingComposite<BeatmapSetInfo, BeatmapManager>
|
||||||
{
|
{
|
||||||
public readonly IBindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
public readonly IBindable<PlaylistItem> SelectedItem = new Bindable<PlaylistItem>();
|
||||||
|
|
@ -16,7 +16,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
|||||||
private IBindable<BeatmapAvailability> availability;
|
private IBindable<BeatmapAvailability> availability;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OnlinePlayBeatmapAvailablilityTracker beatmapTracker)
|
private void load(OnlinePlayBeatmapAvailabilityTracker beatmapTracker)
|
||||||
{
|
{
|
||||||
availability = beatmapTracker.Availability.GetBoundCopy();
|
availability = beatmapTracker.Availability.GetBoundCopy();
|
||||||
|
|
||||||
|
@ -56,15 +56,15 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
|||||||
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
|
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
protected OnlinePlayBeatmapAvailablilityTracker BeatmapAvailablilityTracker { get; }
|
protected OnlinePlayBeatmapAvailabilityTracker BeatmapAvailabilityTracker { get; }
|
||||||
|
|
||||||
protected IBindable<BeatmapAvailability> BeatmapAvailability => BeatmapAvailablilityTracker.Availability;
|
protected IBindable<BeatmapAvailability> BeatmapAvailability => BeatmapAvailabilityTracker.Availability;
|
||||||
|
|
||||||
protected RoomSubScreen()
|
protected RoomSubScreen()
|
||||||
{
|
{
|
||||||
AddRangeInternal(new Drawable[]
|
AddRangeInternal(new Drawable[]
|
||||||
{
|
{
|
||||||
BeatmapAvailablilityTracker = new OnlinePlayBeatmapAvailablilityTracker
|
BeatmapAvailabilityTracker = new OnlinePlayBeatmapAvailabilityTracker
|
||||||
{
|
{
|
||||||
SelectedItem = { BindTarget = SelectedItem }
|
SelectedItem = { BindTarget = SelectedItem }
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user