Search Results for

    Show / Hide Table of Contents

    Class PlayerJoiningEventArgs

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

    Inheritance
    object
    EventArgs
    PlayerJoiningEventArgs
    Inherited Members
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 player is trying to join.

    ServerPlayer player

    tThe 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 that is joining.

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

    Room

    Gets the room that player is trying to join.

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

    Methods

    Reject()

    Mark 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