C# Класс ACR_ServerCommunicator.GameServer

This object maintains state about a game server, gathered from the database.
Наследование: IGameEntity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GameServer() публичный Метод

Construct a new GameServer object.
public GameServer ( GameWorldManager WorldManager ) : System
WorldManager GameWorldManager Supplies the game world manager. ///
Результат System

GetIPAddress() публичный Метод

Get the IP address of the server. Raises an exception on failure.
public GetIPAddress ( ) : IPAddress
Результат System.Net.IPAddress

PopulateFromDatabase() публичный Метод

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.
Результат void

RefreshOnlineStatus() публичный Метод

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.
Результат void

SetHostnameAndPort() публичный Метод

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.
Результат void