logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IPlayerInputJoinService

    Service to manage player joining/leaving in local multiplayer scenarios.

    Namespace: Serenity.InputGateway.Application.Interfaces
    Assembly: Serenity.InputGateway.Application.dll
    Syntax
    public interface IPlayerInputJoinService : IService, IFoundationSettings
    Remarks

    Implementations should be serializable by the foundation.

    Methods

    DisableJoining()

    Disables player joining.

    Declaration
    void DisableJoining()
    Remarks

    This method prevent new players from joining the game.

    EnableJoining()

    Enables player joining.

    Declaration
    void EnableJoining()
    Remarks

    This method allow new players to join the game.

    Events

    OnJoined

    Event triggered when a player joins. The string parameter is the player's unique identifier.

    Declaration
    event Action<string> OnJoined
    Event Type
    Type Description
    Action<string>

    The player's unique identifier as a string.

    Remarks

    This event should be triggered whenever a new player successfully joins the game.

    OnLeft

    Event triggered when a player leaves. The string parameter is the player's unique identifier.

    Declaration
    event Action<string> OnLeft
    Event Type
    Type Description
    Action<string>

    The player's unique identifier as a string.

    Remarks

    This event should be triggered whenever a player leaves the game.

    In this article
    © 2026 Serenity. All Rights Reserved