mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
24 lines
653 B
C#
24 lines
653 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.Containers;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Screens.Play.HUD
|
|
{
|
|
public abstract class HealthDisplay : Container
|
|
{
|
|
public readonly BindableDouble Current = new BindableDouble
|
|
{
|
|
MinValue = 0,
|
|
MaxValue = 1
|
|
};
|
|
|
|
public virtual void BindHealthProcessor(HealthProcessor processor)
|
|
{
|
|
Current.BindTo(processor.Health);
|
|
}
|
|
}
|
|
}
|