mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 00:23:22 +08:00
27 lines
803 B
C#
27 lines
803 B
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.
|
||
|
|
||
|
using osu.Framework.Bindables;
|
||
|
using osu.Framework.Graphics;
|
||
|
using osu.Game.Rulesets.Judgements;
|
||
|
|
||
|
namespace osu.Game.Screens.Play.HUD
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// An interface providing a set of methods to update a health display.
|
||
|
/// </summary>
|
||
|
public interface IHealthDisplay : IDrawable
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// The current health to be displayed.
|
||
|
/// </summary>
|
||
|
Bindable<double> Current { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Flash the display for a specified result type.
|
||
|
/// </summary>
|
||
|
/// <param name="result">The result type.</param>
|
||
|
void Flash(JudgementResult result);
|
||
|
}
|
||
|
}
|