Class ServerPlayer
This class represents a player on 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 | Internally generated unique key used 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 the player is. It is null if the player is in the lobby.
Declaration
public ServerRoom Room { get; }
Property Value
Type | Description |
---|---|
ServerRoom |