Interface IMenuControllerFactory<TAction, TContext>
Factory interface for creating menu controllers with specified action and context types.
Namespace: Serenity.Menu.Application.Interfaces.Controllers.Factories
Assembly: Serenity.Menu.Application.dll
Syntax
public interface IMenuControllerFactory<TAction, TContext> where TAction : IDisposable
Type Parameters
| Name | Description |
|---|---|
| TAction | |
| TContext |
Methods
CreateController(string, string, float, int, float, IPlayerInputService, IPlayerInputActionBindingFactory<TAction, TContext>, IMenuService, object, ILogService)
Creates a new menu controller instance with the specified parameters.
Declaration
IUiController<TAction, TContext> CreateController(string id, string guid, float changeInterval, int consecutiveChangesBeforeSpeedUp, float fastChangeInterval, IPlayerInputService playerInputService, IPlayerInputActionBindingFactory<TAction, TContext> playerInputActionBindingFactory, IMenuService menuService, object playerInput, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | Unique identifier for the controller. |
| string | guid | Globally unique identifier for the controller. |
| float | changeInterval | Time interval for changes. |
| int | consecutiveChangesBeforeSpeedUp | Number of consecutive changes before speeding up. |
| float | fastChangeInterval | Time interval for fast changes. |
| IPlayerInputService | playerInputService | Service for handling player input. |
| IPlayerInputActionBindingFactory<TAction, TContext> | playerInputActionBindingFactory | Factory for creating player input action bindings. |
| IMenuService | menuService | Service for managing menus. |
| object | playerInput | The player input object. |
| ILogService | logService | Service for logging information. |
Returns
| Type | Description |
|---|---|
| IUiController<TAction, TContext> | A new instance of a menu controller. |