logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IPlayerInputServiceFactory

    Factory interface for creating instances of IPlayerInputService with specified parameters.

    Namespace: Serenity.InputGateway.Application.Interfaces
    Assembly: Serenity.InputGateway.Application.dll
    Syntax
    public interface IPlayerInputServiceFactory

    Methods

    CreateService(string, object, IPlayerInputServiceSettingsDefinition, TaskBuildContext, IUiInputRouter, IPlayerInputSlots, IUiInputRouter, IPrimaryDeviceSelector, IPrimaryInputGate, IPlayerInputJoinService)

    Creates an instance of IPlayerInputService using the provided parameters.

    Declaration
    IPlayerInputService CreateService(string serviceName, object playerInput, IPlayerInputServiceSettingsDefinition settings, TaskBuildContext context, IUiInputRouter uiInputRouter, IPlayerInputSlots slots, IUiInputRouter inputRouter, IPrimaryDeviceSelector primaryDeviceSelector, IPrimaryInputGate primaryInputGate, IPlayerInputJoinService joinService)
    Parameters
    Type Name Description
    string serviceName

    The name of the service.

    object playerInput

    The player input handle (e.g., a PlayerInput component in Unity).

    IPlayerInputServiceSettingsDefinition settings

    The settings for the player input service.

    TaskBuildContext context

    The task build context for creating tasks.

    IUiInputRouter uiInputRouter

    The UI input router to handle UI input routing.

    IPlayerInputSlots slots

    The player input slots to manage.

    IUiInputRouter inputRouter

    The input router to handle input routing.

    IPrimaryDeviceSelector primaryDeviceSelector

    The primary device selector to handle primary device selection.

    IPrimaryInputGate primaryInputGate

    The primary input gate to handle primary input gating.

    IPlayerInputJoinService joinService

    The player input join service to handle player joining.

    Returns
    Type Description
    IPlayerInputService

    An instance of IPlayerInputService.

    In this article
    © 2026 Serenity. All Rights Reserved