mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Add LocalUserPlayInfo
interface to convey common information about player status
This commit is contained in:
17
osu.Game/Screens/Play/ILocalUserPlayInfo.cs
Normal file
17
osu.Game/Screens/Play/ILocalUserPlayInfo.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user