Interface IPlayerInputActionBindingFactory<TAction, TContext>
Factory interface for creating player input action bindings.
Namespace: Serenity.InputGateway.Domain.Interfaces
Assembly: Serenity.InputGateway.Domain.dll
Syntax
public interface IPlayerInputActionBindingFactory<TAction, TContext> where TAction : IDisposable
Type Parameters
| Name | Description |
|---|---|
| TAction | |
| TContext |
Methods
Create(TAction, Action<TContext>)
Creates a player input action binding for the specified action and handler.
Declaration
IPlayerInputActionBinding<TAction, TContext> Create(TAction action, Action<TContext> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| TAction | action | The action to bind. |
| Action<TContext> | handler | The handler to invoke when the action is performed. |
Returns
| Type | Description |
|---|---|
| IPlayerInputActionBinding<TAction, TContext> | An instance of IPlayerInputActionBinding. |