C# 클래스 ACR_ServerCommunicator.GameServer

This object maintains state about a game server, gathered from the database.
상속: IGameEntity
파일 보기 프로젝트 열기: ALandFarAway/ALFA-Base-Resources 1 사용 예제들

공개 메소드들

메소드 설명
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