Search Results for

    Show / Hide Table of Contents

    Class PlayerJoiningEventArgs

    Represents the arguments of the message received when a player is joining a room.

    Inheritance
    object
    EventArgs
    PlayerJoiningEventArgs
    Namespace: Evergine.Networking.Server
    Assembly: Evergine.Networking.dll
    Syntax
    public class PlayerJoiningEventArgs : EventArgs

    Constructors

    PlayerJoiningEventArgs(ServerRoom, ServerPlayer)

    Initializes a new instance of the PlayerJoiningEventArgs class.

    Declaration
    public PlayerJoiningEventArgs(ServerRoom room, ServerPlayer player)
    Parameters
    Type Name Description
    ServerRoom room

    The room that the player is trying to join.

    ServerPlayer player

    The player that is joining.

    Properties

    IsRejected

    Gets a value indicating whether the joining request has been rejected.

    Declaration
    public bool IsRejected { get; }
    Property Value
    Type Description
    bool

    Player

    Gets the player who is joining.

    Declaration
    public ServerPlayer Player { get; }
    Property Value
    Type Description
    ServerPlayer

    Room

    Gets the room the player is trying to join.

    Declaration
    public ServerRoom Room { get; }
    Property Value
    Type Description
    ServerRoom

    Methods

    Reject()

    Marks the joining request as rejected.

    Declaration
    public void Reject()

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX