Search Results for

    Show / Hide Table of Contents

    Class TimeModifier

    Inheritance
    Object
    TimeModifier
    Implements
    ITimeModifier
    IPreRunGameService
    Namespace: RTSEngine.Determinism
    Assembly: cs.temp.dll.dll
    Syntax
    public class TimeModifier : MonoBehaviour, ITimeModifier, IPreRunGameService

    Properties

    CanFreezeTimeOnPause

    Declaration
    public bool CanFreezeTimeOnPause { get; }
    Property Value
    Type Description
    Boolean

    CurrentModifier

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

    CurrOptionIndex

    Declaration
    public int CurrOptionIndex { get; }
    Property Value
    Type Description
    Int32

    gameMgr

    Declaration
    protected IGameManager gameMgr { get; }
    Property Value
    Type Description
    IGameManager

    globalEvent

    Declaration
    protected IGlobalEventPublisher globalEvent { get; }
    Property Value
    Type Description
    IGlobalEventPublisher

    inputMgr

    Declaration
    protected IInputManager inputMgr { get; }
    Property Value
    Type Description
    IInputManager

    logger

    Declaration
    protected IGameLoggingService logger { get; }
    Property Value
    Type Description
    IGameLoggingService

    Options

    Declaration
    public TimeModifierOptions Options { get; }
    Property Value
    Type Description
    TimeModifierOptions

    Methods

    AddTimer(GlobalTimeModifiedTimer, Action)

    Declaration
    public void AddTimer(GlobalTimeModifiedTimer timer, Action timerThroughCallback)
    Parameters
    Type Name Description
    GlobalTimeModifiedTimer timer
    System.Action timerThroughCallback

    ApplyModifier(Single)

    Declaration
    public static float ApplyModifier(float input)
    Parameters
    Type Name Description
    System.Single input
    Returns
    Type Description
    System.Single

    Init(IGameManager)

    Declaration
    public void Init(IGameManager gameMgr)
    Parameters
    Type Name Description
    IGameManager gameMgr

    RemoveTimer(GlobalTimeModifiedTimer)

    Declaration
    public void RemoveTimer(GlobalTimeModifiedTimer timer)
    Parameters
    Type Name Description
    GlobalTimeModifiedTimer timer

    SetModifier(Single, Boolean)

    Declaration
    public ErrorMessage SetModifier(float newModifier, bool playerCommand)
    Parameters
    Type Name Description
    System.Single newModifier
    Boolean playerCommand
    Returns
    Type Description
    ErrorMessage

    SetModifierLocal(Single, Boolean)

    Declaration
    public ErrorMessage SetModifierLocal(float newModifier, bool playerCommand)
    Parameters
    Type Name Description
    System.Single newModifier
    Boolean playerCommand
    Returns
    Type Description
    ErrorMessage

    SetOptions(TimeModifierOption[], Int32)

    Declaration
    public void SetOptions(TimeModifierOption[] modifierOptions, int initialOptionIndex)
    Parameters
    Type Name Description
    TimeModifierOption[] modifierOptions
    Int32 initialOptionIndex

    Events

    ModifierUpdated

    Declaration
    public event CustomEventHandler<ITimeModifier, EventArgs> ModifierUpdated
    Event Type
    Type Description
    CustomEventHandler<ITimeModifier, System.EventArgs>

    Implements

    ITimeModifier
    IPreRunGameService
    In This Article
    Back to top Unity RTS Engine Documentation