Class ServerPlayer
This class represents a player from the server.
Implements
Inherited Members
Namespace: Evergine.Networking.Server.Players
Assembly: Evergine.Networking.dll
Syntax
public class ServerPlayer : BaseSyncNetworkPlayer, INetworkPlayer
  Constructors
ServerPlayer(int, NetworkEndpoint)
Initializes a new instance of the ServerPlayer class.
Declaration
public ServerPlayer(int key, NetworkEndpoint endpoint)
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | key | Internal unique key generated by the server to identify players.  | 
      
| NetworkEndpoint | endpoint | The network endpoint of the player.  | 
      
Properties
Endpoint
Gets the network endpoint of the player.
Declaration
public NetworkEndpoint Endpoint { get; }
  Property Value
| Type | Description | 
|---|---|
| NetworkEndpoint | 
Room
Gets the server room where is the player. It is null if the player is in the lobby.
Declaration
public ServerRoom Room { get; }
  Property Value
| Type | Description | 
|---|---|
| ServerRoom |