Interface IPrimaryInputGateFactory
Domain factory for creating/configuring an IPrimaryInputGate.
Handlers for the player input system (e.g., PlayerInput component in Unity)
are passed opaquely as object in PrimaryInputGateFactoryInput.
Namespace: Serenity.InputGateway.Domain.Interfaces.Components.Factories
Assembly: Serenity.InputGateway.Application.dll
Syntax
public interface IPrimaryInputGateFactory
Methods
Create(object, PrimaryInputGateFactoryInput, IPlayerInputService, ILogService)
Creates (or reuses/configures) a gate over a specific engine host.
The engine contract is encapsulated in PrimaryInputGateFactoryInput.
Declaration
IPrimaryInputGate Create(object host, PrimaryInputGateFactoryInput input, IPlayerInputService playerInputService, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| object | host | The host object (e.g., a GameObject in Unity) to attach the gate component to. |
| PrimaryInputGateFactoryInput | input | The input parameters for creating/configuring the gate. |
| IPlayerInputService | playerInputService | The player input service from the application layer. |
| ILogService | logService | The logging service for centralized logging. |
Returns
| Type | Description |
|---|---|
| IPrimaryInputGate | The created or reused IPrimaryInputGate instance. |