2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2021-04-01 21:02:32 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets;
|
|
|
|
|
using osu.Game.Scoring;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Spectate
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2021-10-02 01:08:56 +08:00
|
|
|
|
/// An immutable spectator gameplay state.
|
2021-04-01 21:02:32 +08:00
|
|
|
|
/// </summary>
|
2021-10-02 01:08:56 +08:00
|
|
|
|
public class SpectatorGameplayState
|
2021-04-01 21:02:32 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The score which the user is playing.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly Score Score;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The ruleset which the user is playing.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly Ruleset Ruleset;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The beatmap which the user is playing.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly WorkingBeatmap Beatmap;
|
|
|
|
|
|
2021-10-02 01:08:56 +08:00
|
|
|
|
public SpectatorGameplayState(Score score, Ruleset ruleset, WorkingBeatmap beatmap)
|
2021-04-01 21:02:32 +08:00
|
|
|
|
{
|
|
|
|
|
Score = score;
|
|
|
|
|
Ruleset = ruleset;
|
|
|
|
|
Beatmap = beatmap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|