⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Interface IStaminaSystem

    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public interface IStaminaSystem

    Properties

    isExhausted

    Declaration
    bool isExhausted { get; }
    Property Value
    Type Description
    System.Boolean

    maxStamina

    Declaration
    float maxStamina { get; set; }
    Property Value
    Type Description
    System.Single

    stamina

    Declaration
    float stamina { get; }
    Property Value
    Type Description
    System.Single

    staminaNormalised

    Declaration
    float staminaNormalised { get; }
    Property Value
    Type Description
    System.Single

    staminaRefreshRate

    Declaration
    float staminaRefreshRate { get; set; }
    Property Value
    Type Description
    System.Single

    Methods

    AddStaminaDrain(StaminaDrainDelegate)

    Declaration
    void AddStaminaDrain(StaminaDrainDelegate drain)
    Parameters
    Type Name Description
    StaminaDrainDelegate drain

    DecrementStamina(Single, Boolean)

    Declaration
    void DecrementStamina(float amount, bool isFactor = false)
    Parameters
    Type Name Description
    System.Single amount
    System.Boolean isFactor

    IncrementStamina(Single, Boolean)

    Declaration
    void IncrementStamina(float amount, bool isFactor = false)
    Parameters
    Type Name Description
    System.Single amount
    System.Boolean isFactor

    RemoveStaminaDrain(StaminaDrainDelegate)

    Declaration
    void RemoveStaminaDrain(StaminaDrainDelegate drain)
    Parameters
    Type Name Description
    StaminaDrainDelegate drain

    SetStamina(Single, Boolean)

    Declaration
    void SetStamina(float amount, bool normalised = false)
    Parameters
    Type Name Description
    System.Single amount
    System.Boolean normalised

    Events

    onStaminaChanged

    Declaration
    event UnityAction onStaminaChanged
    Event Type
    Type Description
    UnityAction
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX