Add LocalUserPlayInfo interface to convey common information about player status

This commit is contained in:
Dean Herbert
2021-08-17 16:13:45 +09:00
parent 66e33b3704
commit 82eddeffef
6 changed files with 33 additions and 10 deletions

View File

@ -0,0 +1,17 @@
// 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.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
namespace osu.Game.Screens.Play
{
[Cached]
public interface ILocalUserPlayInfo
{
/// <summary>
/// Whether the local user is currently playing.
/// </summary>
public IBindable<bool> IsPlaying { get; }
}
}