mirror of
https://github.com/ppy/osu.git
synced 2026-05-17 00:23:24 +08:00
85d48f5df6
Before this commit, there was `AllowFailAnimation` (used by multiplayer) and `OnFail()` (used by score submitting implementations of player to ensure a failed play submits). The former is replaced by `PerformFail()` which allows for arbitrary operations on failure, which replay player shall leverage in subsequent commits. The latter would ideally be replaced by nothing, but it's placed in a very awkward place behind a schedule, so by force of necessity to avoid code duplication it's replaced by `ConcludeFailedScore()` which is overridden to submit the score in all submitting players --- except for multiplayer, which is never supposed to be calling it, so in that case it just throws an exception.
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
namespace osu.Game.Screens.Play
|
|
{
|
|
public class PlayerConfiguration
|
|
{
|
|
/// <summary>
|
|
/// Whether pausing should be allowed. If not allowed, attempting to pause will quit.
|
|
/// </summary>
|
|
public bool AllowPause { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Whether results screen should be pushed on completion.
|
|
/// </summary>
|
|
public bool ShowResults { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Whether the player should be allowed to trigger a restart.
|
|
/// </summary>
|
|
public bool AllowRestart { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Whether the player should be able to interact with this player instance.
|
|
/// </summary>
|
|
public bool AllowUserInteraction { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Whether the player should be allowed to skip intros/outros, advancing to the start of gameplay or the end of a storyboard.
|
|
/// </summary>
|
|
public bool AllowSkipping { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Whether the intro should be skipped by default.
|
|
/// </summary>
|
|
public bool AutomaticallySkipIntro { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether the gameplay leaderboard should be shown.
|
|
/// </summary>
|
|
public bool ShowLeaderboard { get; set; }
|
|
}
|
|
}
|