Search Results for

    Show / Hide Table of Contents

    Class InputManager

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

    Fields

    entityCodeToPrefabIndex

    Declaration
    public IReadOnlyDictionary<string, int> entityCodeToPrefabIndex
    Field Value
    Type Description
    System.Collections.Generic.IReadOnlyDictionary<String, Int32>

    INVALID_ENTITY_KEY

    Declaration
    public const int INVALID_ENTITY_KEY = -1
    Field Value
    Type Description
    Int32

    Properties

    attackMgr

    Declaration
    protected IAttackManager attackMgr { get; }
    Property Value
    Type Description
    IAttackManager

    buildingMgr

    Declaration
    protected IBuildingManager buildingMgr { get; }
    Property Value
    Type Description
    IBuildingManager

    gameMgr

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

    logger

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

    mvtMgr

    Declaration
    protected IMovementManager mvtMgr { get; }
    Property Value
    Type Description
    IMovementManager

    resourceMgr

    Declaration
    protected IResourceManager resourceMgr { get; }
    Property Value
    Type Description
    IResourceManager

    timeModifier

    Declaration
    protected ITimeModifier timeModifier { get; }
    Property Value
    Type Description
    ITimeModifier

    unitMgr

    Declaration
    protected IUnitManager unitMgr { get; }
    Property Value
    Type Description
    IUnitManager

    Methods

    Init(IGameManager)

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

    LaunchInput(CommandInput)

    Declaration
    public void LaunchInput(CommandInput input)
    Parameters
    Type Name Description
    CommandInput input

    LaunchInput(IEnumerable<CommandInput>)

    Declaration
    public void LaunchInput(IEnumerable<CommandInput> inputs)
    Parameters
    Type Name Description
    IEnumerable<CommandInput> inputs

    OnCustomInput(CommandInput)

    Declaration
    protected virtual void OnCustomInput(CommandInput input)
    Parameters
    Type Name Description
    CommandInput input

    RegisterEntity(IEntity, InitEntityParameters)

    Declaration
    public int RegisterEntity(IEntity newEntity, InitEntityParameters initParams)
    Parameters
    Type Name Description
    IEntity newEntity
    InitEntityParameters initParams
    Returns
    Type Description
    Int32

    SendInput(CommandInput)

    Declaration
    public ErrorMessage SendInput(CommandInput newInput)
    Parameters
    Type Name Description
    CommandInput newInput
    Returns
    Type Description
    ErrorMessage

    SendInput(CommandInput, IEntity, IEntity, Boolean)

    Declaration
    public ErrorMessage SendInput(CommandInput newInput, IEntity source, IEntity target, bool masterInstanceOnly = false)
    Parameters
    Type Name Description
    CommandInput newInput
    IEntity source
    IEntity target
    Boolean masterInstanceOnly
    Returns
    Type Description
    ErrorMessage

    SendInput(CommandInput, IEnumerable<IEntity>, IEntity, Boolean)

    Declaration
    public ErrorMessage SendInput(CommandInput newInput, IEnumerable<IEntity> source, IEntity target, bool masterInstanceOnly = false)
    Parameters
    Type Name Description
    CommandInput newInput
    IEnumerable<IEntity> source
    IEntity target
    Boolean masterInstanceOnly
    Returns
    Type Description
    ErrorMessage

    ToIntValues(Int32)

    Declaration
    public IntValues ToIntValues(int int1)
    Parameters
    Type Name Description
    Int32 int1
    Returns
    Type Description
    IntValues

    ToIntValues(Int32, Int32)

    Declaration
    public IntValues ToIntValues(int int1, int int2)
    Parameters
    Type Name Description
    Int32 int1
    Int32 int2
    Returns
    Type Description
    IntValues

    TryGetEntityInstanceWithKey(Int32, out IEntity)

    Declaration
    public bool TryGetEntityInstanceWithKey(int key, out IEntity entity)
    Parameters
    Type Name Description
    Int32 key
    IEntity entity
    Returns
    Type Description
    Boolean

    TryGetEntityPrefabWithCode(String, out IEntity)

    Declaration
    public bool TryGetEntityPrefabWithCode(string key, out IEntity entity)
    Parameters
    Type Name Description
    String key
    IEntity entity
    Returns
    Type Description
    Boolean

    Implements

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