// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using osu.Framework.Bindables; using osu.Game.Beatmaps; using osu.Game.Rulesets; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Mods; #nullable enable namespace osu.Game.Screens.Play { public class GameplayState { /// /// The final post-convert post-mod-application beatmap. /// public readonly IBeatmap Beatmap; public readonly Ruleset Ruleset; public IReadOnlyList Mods; public GameplayState(IBeatmap beatmap, Ruleset ruleset, IReadOnlyList mods) { Beatmap = beatmap; Ruleset = ruleset; Mods = mods; } private readonly Bindable lastJudgementResult = new Bindable(); public IBindable LastJudgementResult => lastJudgementResult; public void ApplyResult(JudgementResult result) => lastJudgementResult.Value = result; } }