Search Results for

    Show / Hide Table of Contents

    Class TimeModifiedTimer

    Inheritance
    Object
    TimeModifiedTimer
    GlobalTimeModifiedTimer
    Namespace: RTSEngine.Determinism
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class TimeModifiedTimer

    Constructors

    TimeModifiedTimer()

    Declaration
    public TimeModifiedTimer()

    TimeModifiedTimer(FloatRange, Boolean)

    Declaration
    public TimeModifiedTimer(FloatRange defaultValueRange, bool assignCurrValue = true)
    Parameters
    Type Name Description
    FloatRange defaultValueRange
    Boolean assignCurrValue

    TimeModifiedTimer(Single, Boolean)

    Declaration
    public TimeModifiedTimer(float defaultValue, bool assignCurrValue = true)
    Parameters
    Type Name Description
    System.Single defaultValue
    Boolean assignCurrValue

    Properties

    CurrValue

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

    DefaultValue

    Declaration
    public float DefaultValue { get; protected set; }
    Property Value
    Type Description
    System.Single

    Methods

    ModifiedDecrease()

    Declaration
    public bool ModifiedDecrease()
    Returns
    Type Description
    Boolean

    True when the timer is done (value is equal or below zero).

    Reload()

    Declaration
    public void Reload()

    Reload(FloatRange)

    Declaration
    public void Reload(FloatRange newDefaultValueRange)
    Parameters
    Type Name Description
    FloatRange newDefaultValueRange

    Reload(Single)

    Declaration
    public void Reload(float newValue)
    Parameters
    Type Name Description
    System.Single newValue

    SetDefaultValue(Single)

    Declaration
    public void SetDefaultValue(float newDefaultValue)
    Parameters
    Type Name Description
    System.Single newDefaultValue
    In This Article
    Back to top Unity RTS Engine Documentation