⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Delegate StaminaDrainDelegate

    A callback used to apply stamina drains for a stamina system

    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public delegate float StaminaDrainDelegate(IStaminaSystem system, float modifiedStamina);
    Parameters
    Type Name Description
    IStaminaSystem system

    The stamina system the drain is applied to.

    System.Single modifiedStamina

    The current stamina. This can differ from the system.stamina value as refresh and drains are applied.

    Returns
    Type Description
    System.Single

    The amount of stamina to subtract (should take time into account).

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX