C# Class ACR_ServerCommunicator.GameServer

This object maintains state about a game server, gathered from the database.
Inheritance: IGameEntity
Afficher le fichier Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Méthodes publiques

Méthode Description
GameServer ( GameWorldManager WorldManager ) : System

Construct a new GameServer object.

GetIPAddress ( ) : IPAddress

Get the IP address of the server. Raises an exception on failure.

PopulateFromDatabase ( IALFADatabase Database ) : void

Retrieve the properties of the server from the database.

RefreshOnlineStatus ( IALFADatabase Database ) : void

Re-compute the online status for the server.

SetHostnameAndPort ( string AddressString ) : void

Set the hostname and port based on parsing an address string, which may be either 'hostname' or 'hostname:port'. The default port of 5121 is used if no port was set.

Method Details

GameServer() public méthode

Construct a new GameServer object.
public GameServer ( GameWorldManager WorldManager ) : System
WorldManager GameWorldManager Supplies the game world manager. ///
Résultat System

GetIPAddress() public méthode

Get the IP address of the server. Raises an exception on failure.
public GetIPAddress ( ) : IPAddress
Résultat System.Net.IPAddress

PopulateFromDatabase() public méthode

Retrieve the properties of the server from the database.
public PopulateFromDatabase ( IALFADatabase Database ) : void
Database IALFADatabase Supplies the database connection to use for /// queries, if required. The active rowset may be consumed.
Résultat void

RefreshOnlineStatus() public méthode

Re-compute the online status for the server.
public RefreshOnlineStatus ( IALFADatabase Database ) : void
Database IALFADatabase Supplies the database connection to use for /// queries, if required. The active rowset may be consumed.
Résultat void

SetHostnameAndPort() public méthode

Set the hostname and port based on parsing an address string, which may be either 'hostname' or 'hostname:port'. The default port of 5121 is used if no port was set.
public SetHostnameAndPort ( string AddressString ) : void
AddressString string Supplies the address string to set the /// server network address information from.
Résultat void