Nocturna
    Preparing search index...

    Class Lobby

    Lobby manages the multiplayer lobby user interface.

    • Handles room creation and joining.
    • Displays player list and ready status.
    • Provides error handling and menu cleanup.
    Index

    Constructors

    Methods

    • Adds a player to the player list UI.

      Parameters

      • playerId: string

        The player's ID.

      Returns void

    • Removes the current menu from the scene.

      Returns void

    • Removes a player from the player list UI.

      Parameters

      • playerId: string

        The player's ID.

      Returns void

    • Sets a player's status to "Ready" in the UI.

      Parameters

      • playerId: string

        The player's ID.

      Returns void

    • Displays an error message overlay with a close button that returns to the start menu.

      Parameters

      • message: string

        The error message to display.

      Returns void

    • Displays the player list for a given room, with ready status and copyable room ID.

      Parameters

      • roomId: string

        The room ID.

      • playerId: string

        The current player's ID.

      • players: string[]

        The list of player IDs in the room.

      Returns void

    • Displays the start menu for multiplayer, allowing the player to create or join a room.

      Returns void