Class PlayerJoiningEventArgs
Represents the arguments of the message received when a player is joining to a room.
Inherited Members
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()