C# 클래스 Aura.Shared.ServerMain

General methods needed by all servers.
파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void

Tries to initialize database with the information from conf, exits on error.

LoadConf ( BaseConf conf ) : void

Tries to call conf's load method, exits on error.

LoadData ( DataLoad toLoad, bool reload ) : void

(Re-)Loads data files (db), exits on error.

Called on server start and with some reload commands. Should only load required data, e.g. Msgr Server doesn't need race data.

LoadLocalization ( BaseConf conf ) : void

Loads system and user localization files.

NavigateToRoot ( ) : void

Tries to find aura root folder and changes the working directory to it. Exits if not successful.

비공개 메소드들

메소드 설명
LoadDb ( IDatabase db, string path, bool reload, bool log = true ) : void

Loads db, first from system, then from user. Logs problems as warnings.

메소드 상세

InitDatabase() 공개 메소드

Tries to initialize database with the information from conf, exits on error.
public InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void
db Aura.Shared.Database.AuraDb
conf Aura.Shared.Util.Configuration.BaseConf
리턴 void

LoadConf() 공개 메소드

Tries to call conf's load method, exits on error.
public LoadConf ( BaseConf conf ) : void
conf Aura.Shared.Util.Configuration.BaseConf
리턴 void

LoadData() 공개 메소드

(Re-)Loads data files (db), exits on error.
Called on server start and with some reload commands. Should only load required data, e.g. Msgr Server doesn't need race data.
public LoadData ( DataLoad toLoad, bool reload ) : void
toLoad DataLoad
reload bool
리턴 void

LoadLocalization() 공개 메소드

Loads system and user localization files.
public LoadLocalization ( BaseConf conf ) : void
conf Aura.Shared.Util.Configuration.BaseConf
리턴 void

NavigateToRoot() 공개 메소드

Tries to find aura root folder and changes the working directory to it. Exits if not successful.
public NavigateToRoot ( ) : void
리턴 void