mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Partial everything
This commit is contained in:
committed by
Dean Herbert
parent
a1c559ae05
commit
7bc8908ca9
@ -15,7 +15,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <remarks>
|
||||
/// The <see cref="CachedDependencies"/> must be set while this <see cref="DependencyProvidingContainer"/> is not loaded.
|
||||
/// </remarks>
|
||||
public class DependencyProvidingContainer : Container
|
||||
public partial class DependencyProvidingContainer : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// The dependencies provided to the children.
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// Provides a clock, beat-divisor, and scrolling capability for test cases of editor components that
|
||||
/// are preferrably tested within the presence of a clock and seek controls.
|
||||
/// </summary>
|
||||
public abstract class EditorClockTestScene : OsuManualInputManagerTestScene
|
||||
public abstract partial class EditorClockTestScene : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider overlayColour = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// Tests the general expected flow of creating a new beatmap, saving it, then loading it back from song select.
|
||||
/// </summary>
|
||||
public abstract class EditorSavingTestScene : OsuGameTestScene
|
||||
public abstract partial class EditorSavingTestScene : OsuGameTestScene
|
||||
{
|
||||
protected Editor Editor => Game.ChildrenOfType<Editor>().FirstOrDefault();
|
||||
|
||||
|
@ -23,7 +23,7 @@ using osu.Game.Skinning;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class EditorTestScene : ScreenTestScene
|
||||
public abstract partial class EditorTestScene : ScreenTestScene
|
||||
{
|
||||
private TestEditorLoader editorLoader;
|
||||
|
||||
@ -83,7 +83,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected sealed override Ruleset CreateRuleset() => CreateEditorRuleset();
|
||||
|
||||
protected class TestEditorLoader : EditorLoader
|
||||
protected partial class TestEditorLoader : EditorLoader
|
||||
{
|
||||
public TestEditor Editor { get; private set; }
|
||||
|
||||
@ -92,7 +92,7 @@ namespace osu.Game.Tests.Visual
|
||||
protected virtual TestEditor CreateTestEditor(EditorLoader loader) => new TestEditor(loader);
|
||||
}
|
||||
|
||||
protected class TestEditor : Editor
|
||||
protected partial class TestEditor : Editor
|
||||
{
|
||||
[Resolved(canBeNull: true)]
|
||||
[CanBeNull]
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Skinning;
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
[TestFixture]
|
||||
public abstract class LegacySkinPlayerTestScene : PlayerTestScene
|
||||
public abstract partial class LegacySkinPlayerTestScene : PlayerTestScene
|
||||
{
|
||||
protected LegacySkin LegacySkin { get; private set; }
|
||||
|
||||
@ -54,7 +54,7 @@ namespace osu.Game.Tests.Visual
|
||||
AddUntilStep("wait for components to load", () => this.ChildrenOfType<SkinnableTargetContainer>().All(t => t.ComponentsLoaded));
|
||||
}
|
||||
|
||||
public class SkinProvidingPlayer : TestPlayer
|
||||
public partial class SkinProvidingPlayer : TestPlayer
|
||||
{
|
||||
[Cached(typeof(ISkinSource))]
|
||||
private readonly ISkinSource skinSource;
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Rulesets.Objects;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class ModPerfectTestScene : ModTestScene
|
||||
public abstract partial class ModPerfectTestScene : ModTestScene
|
||||
{
|
||||
private readonly ModPerfect mod;
|
||||
|
||||
@ -33,7 +33,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected override TestPlayer CreateModPlayer(Ruleset ruleset) => new PerfectModTestPlayer();
|
||||
|
||||
private class PerfectModTestPlayer : TestPlayer
|
||||
private partial class PerfectModTestPlayer : TestPlayer
|
||||
{
|
||||
public PerfectModTestPlayer()
|
||||
: base(showResults: false)
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class ModTestScene : PlayerTestScene
|
||||
public abstract partial class ModTestScene : PlayerTestScene
|
||||
{
|
||||
protected sealed override bool HasCustomSteps => true;
|
||||
|
||||
@ -58,7 +58,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected virtual TestPlayer CreateModPlayer(Ruleset ruleset) => new ModTestPlayer(currentTestData, AllowFail);
|
||||
|
||||
protected class ModTestPlayer : TestPlayer
|
||||
protected partial class ModTestPlayer : TestPlayer
|
||||
{
|
||||
private readonly bool allowFail;
|
||||
private readonly ModTestData currentTestData;
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
/// <summary>
|
||||
/// The base test scene for all multiplayer components and screens.
|
||||
/// </summary>
|
||||
public abstract class MultiplayerTestScene : OnlinePlayTestScene, IMultiplayerTestSceneDependencies
|
||||
public abstract partial class MultiplayerTestScene : OnlinePlayTestScene, IMultiplayerTestSceneDependencies
|
||||
{
|
||||
public const int PLAYER_1_ID = 55;
|
||||
public const int PLAYER_2_ID = 56;
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
/// <summary>
|
||||
/// A <see cref="MultiplayerClient"/> for use in multiplayer test scenes. Should generally not be used by itself outside of a <see cref="MultiplayerTestScene"/>.
|
||||
/// </summary>
|
||||
public class TestMultiplayerClient : MultiplayerClient
|
||||
public partial class TestMultiplayerClient : MultiplayerClient
|
||||
{
|
||||
public override IBindable<bool> IsConnected => isConnected;
|
||||
private readonly Bindable<bool> isConnected = new Bindable<bool>(true);
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
/// A <see cref="RoomManager"/> for use in multiplayer test scenes.
|
||||
/// Should generally not be used by itself outside of a <see cref="MultiplayerTestScene"/>.
|
||||
/// </summary>
|
||||
public class TestMultiplayerRoomManager : MultiplayerRoomManager
|
||||
public partial class TestMultiplayerRoomManager : MultiplayerRoomManager
|
||||
{
|
||||
private readonly TestRoomRequestsHandler requestsHandler;
|
||||
|
||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
||||
/// <summary>
|
||||
/// A base test scene for all online play components and screens.
|
||||
/// </summary>
|
||||
public abstract class OnlinePlayTestScene : ScreenTestScene, IOnlinePlayTestSceneDependencies
|
||||
public abstract partial class OnlinePlayTestScene : ScreenTestScene, IOnlinePlayTestSceneDependencies
|
||||
{
|
||||
public Bindable<Room> SelectedRoom => OnlinePlayDependencies?.SelectedRoom;
|
||||
public IRoomManager RoomManager => OnlinePlayDependencies?.RoomManager;
|
||||
|
@ -15,7 +15,7 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
||||
/// <summary>
|
||||
/// A very simple <see cref="RoomManager"/> for use in online play test scenes.
|
||||
/// </summary>
|
||||
public class TestRoomManager : RoomManager
|
||||
public partial class TestRoomManager : RoomManager
|
||||
{
|
||||
public Action<Room, string> JoinRoomRequested;
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// A scene which tests full game flow.
|
||||
/// </summary>
|
||||
public abstract class OsuGameTestScene : OsuManualInputManagerTestScene
|
||||
public abstract partial class OsuGameTestScene : OsuManualInputManagerTestScene
|
||||
{
|
||||
protected TestOsuGame Game;
|
||||
|
||||
@ -114,7 +114,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// </summary>
|
||||
protected void DismissAnyNotifications() => Game.Notifications.State.Value = Visibility.Hidden;
|
||||
|
||||
public class TestOsuGame : OsuGame
|
||||
public partial class TestOsuGame : OsuGame
|
||||
{
|
||||
public new const float SIDE_OVERLAY_OFFSET_RATIO = OsuGame.SIDE_OVERLAY_OFFSET_RATIO;
|
||||
|
||||
@ -189,11 +189,11 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
}
|
||||
|
||||
public class TestLoader : Loader
|
||||
public partial class TestLoader : Loader
|
||||
{
|
||||
protected override ShaderPrecompiler CreateShaderPrecompiler() => new TestShaderPrecompiler();
|
||||
|
||||
private class TestShaderPrecompiler : ShaderPrecompiler
|
||||
private partial class TestShaderPrecompiler : ShaderPrecompiler
|
||||
{
|
||||
protected override bool AllLoaded => true;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// An abstract test case which exposes small cells arranged in a grid.
|
||||
/// Useful for displaying multiple configurations of a tested component at a glance.
|
||||
/// </summary>
|
||||
public abstract class OsuGridTestScene : OsuTestScene
|
||||
public abstract partial class OsuGridTestScene : OsuTestScene
|
||||
{
|
||||
private readonly Drawable[,] cells;
|
||||
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class OsuManualInputManagerTestScene : OsuTestScene
|
||||
public abstract partial class OsuManualInputManagerTestScene : OsuTestScene
|
||||
{
|
||||
protected override Container<Drawable> Content => content;
|
||||
private readonly Container content;
|
||||
|
@ -37,7 +37,7 @@ using osu.Game.Tests.Rulesets;
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
[ExcludeFromDynamicCompile]
|
||||
public abstract class OsuTestScene : TestScene
|
||||
public abstract partial class OsuTestScene : TestScene
|
||||
{
|
||||
[Cached]
|
||||
protected Bindable<WorkingBeatmap> Beatmap { get; } = new Bindable<WorkingBeatmap>();
|
||||
@ -503,7 +503,7 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
}
|
||||
|
||||
public class OsuTestSceneTestRunner : OsuGameBase, ITestSceneTestRunner
|
||||
public partial class OsuTestSceneTestRunner : OsuGameBase, ITestSceneTestRunner
|
||||
{
|
||||
private TestSceneTestRunner.TestRunner runner;
|
||||
|
||||
|
@ -16,7 +16,7 @@ using osu.Game.Screens.Edit.Compose;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class PlacementBlueprintTestScene : OsuManualInputManagerTestScene, IPlacementHandler
|
||||
public abstract partial class PlacementBlueprintTestScene : OsuManualInputManagerTestScene, IPlacementHandler
|
||||
{
|
||||
protected readonly Container HitObjectContainer;
|
||||
protected PlacementBlueprint CurrentBlueprint { get; private set; }
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Rulesets.Mods;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class PlayerTestScene : RateAdjustedBeatmapTestScene
|
||||
public abstract partial class PlayerTestScene : RateAdjustedBeatmapTestScene
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether custom test steps are provided. Custom tests should invoke <see cref="CreateTest"/> to create the test steps.
|
||||
|
@ -8,7 +8,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// Test case which adjusts the beatmap's rate to match any speed adjustments in visual tests.
|
||||
/// </summary>
|
||||
public abstract class RateAdjustedBeatmapTestScene : ScreenTestScene
|
||||
public abstract partial class RateAdjustedBeatmapTestScene : ScreenTestScene
|
||||
{
|
||||
protected override void Update()
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// A test case which can be used to test a screen (that relies on OnEntering being called to execute startup instructions).
|
||||
/// </summary>
|
||||
public abstract class ScreenTestScene : OsuManualInputManagerTestScene, IOverlayManager
|
||||
public abstract partial class ScreenTestScene : OsuManualInputManagerTestScene, IOverlayManager
|
||||
{
|
||||
protected readonly OsuScreenStack Stack;
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// A container which provides a <see cref="IScrollingInfo"/> to children.
|
||||
/// This should only be used when testing
|
||||
/// </summary>
|
||||
public class ScrollingTestContainer : Container
|
||||
public partial class ScrollingTestContainer : Container
|
||||
{
|
||||
public SortedList<MultiplierControlPoint> ControlPoints => scrollingInfo.Algorithm.ControlPoints;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using osu.Game.Screens.Edit;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class SelectionBlueprintTestScene : OsuManualInputManagerTestScene
|
||||
public abstract partial class SelectionBlueprintTestScene : OsuManualInputManagerTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly EditorClock editorClock = new EditorClock();
|
||||
|
@ -27,7 +27,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class SkinnableTestScene : OsuGridTestScene, IStorageResourceProvider
|
||||
public abstract partial class SkinnableTestScene : OsuGridTestScene, IStorageResourceProvider
|
||||
{
|
||||
private TrianglesSkin trianglesSkin;
|
||||
private Skin metricsSkin;
|
||||
@ -171,7 +171,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
#endregion
|
||||
|
||||
private class OutlineBox : CompositeDrawable
|
||||
private partial class OutlineBox : CompositeDrawable
|
||||
{
|
||||
public OutlineBox()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Spectator
|
||||
{
|
||||
public class TestSpectatorClient : SpectatorClient
|
||||
public partial class TestSpectatorClient : SpectatorClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Maximum number of frames sent per bundle via <see cref="SendFramesFromUser"/>.
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// A player that exposes many components that would otherwise not be available, for testing purposes.
|
||||
/// </summary>
|
||||
public class TestPlayer : SoloPlayer
|
||||
public partial class TestPlayer : SoloPlayer
|
||||
{
|
||||
protected override bool PauseOnFocusLost { get; }
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// A player that exposes many components that would otherwise not be available, for testing purposes.
|
||||
/// </summary>
|
||||
public class TestReplayPlayer : ReplayPlayer
|
||||
public partial class TestReplayPlayer : ReplayPlayer
|
||||
{
|
||||
protected override bool PauseOnFocusLost { get; }
|
||||
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public class TestUserLookupCache : UserLookupCache
|
||||
public partial class TestUserLookupCache : UserLookupCache
|
||||
{
|
||||
/// <summary>
|
||||
/// A special user ID which <see cref="ComputeValueAsync"/> would return a <see langword="null"/> <see cref="APIUser"/> for.
|
||||
|
Reference in New Issue
Block a user