logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IMenuController<TAction, TContext>

    Interface for a menu controller that handles user interactions within a menu context.

    Namespace: Serenity.Menu.Application.Interfaces.Controllers
    Assembly: Serenity.Menu.Application.dll
    Syntax
    public interface IMenuController<TAction, TContext> : IUiController<TAction, TContext>, IController, IFoundationSettings where TAction : IDisposable
    Type Parameters
    Name Description
    TAction
    TContext

    Methods

    Initialize(float, int, float, IMenuService, object, object)

    Initializes the menu controller with the specified parameters.

    Declaration
    void Initialize(float changeInterval, int consecutiveChangesBeforeSpeedUp, float fastChangeInterval, IMenuService menuService, object timer, object playerInput)
    Parameters
    Type Name Description
    float changeInterval

    Time interval for changes.

    int consecutiveChangesBeforeSpeedUp

    Number of consecutive changes before speeding up.

    float fastChangeInterval

    Time interval for fast changes.

    IMenuService menuService

    Service for managing menus.

    object timer

    The timer object.

    object playerInput

    The player input object.

    In this article
    © 2026 Serenity. All Rights Reserved