Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Game/Rulesets/Mods/IApplicableHealthProcessor.cs
2264 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Game.Rulesets.Scoring;

namespace osu.Game.Rulesets.Mods
{
    /// <summary>
    /// Interface for a <see cref="Mod"/> that provides its own health processor.
    /// </summary>
    public interface IApplicableHealthProcessor
    {
        /// <summary>
        /// Creates the <see cref="HealthProcessor"/>. May be null to use the ruleset default.
        /// </summary>
        HealthProcessor? CreateHealthProcessor(double drainStartTime);
    }
}