C# 클래스 BF2Statistics.BF2Server

파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
ServerProcess Process

공개 메소드들

메소드 설명
GetGametypeString ( string gametype ) : string
SetServerPath ( string ServerPath ) : void

Loads a battlefield 2 server into this object for use.

Start ( BF2Mod Mod, string ExtraArgs, bool ShowConsole, bool MinConsole ) : void

Starts the Battlefield 2 Server application

Stop ( ) : void

Kills the Bf2 Server process

보호된 메소드들

메소드 설명
CheckServerProcess ( ) : void

Assigns the Server Process if the process is running

ServerProcess_Exited ( object sender, EventArgs e ) : void

Event fired when the server closes down

메소드 상세

CheckServerProcess() 보호된 정적인 메소드

Assigns the Server Process if the process is running
protected static CheckServerProcess ( ) : void
리턴 void

GetGametypeString() 공개 정적인 메소드

public static GetGametypeString ( string gametype ) : string
gametype string
리턴 string

ServerProcess_Exited() 보호된 정적인 메소드

Event fired when the server closes down
protected static ServerProcess_Exited ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

SetServerPath() 공개 정적인 메소드

Loads a battlefield 2 server into this object for use.
public static SetServerPath ( string ServerPath ) : void
ServerPath string The full root path to the server's executable file
리턴 void

Start() 공개 정적인 메소드

Starts the Battlefield 2 Server application
public static Start ( BF2Mod Mod, string ExtraArgs, bool ShowConsole, bool MinConsole ) : void
Mod BF2Mod The battlefield 2 mod that the server is to use
ExtraArgs string Any arguments to be past to the application on startup
ShowConsole bool If false, a console will not be created
MinConsole bool If is enabled, true will start the console minimized
리턴 void

Stop() 공개 정적인 메소드

Kills the Bf2 Server process
public static Stop ( ) : void
리턴 void

프로퍼티 상세

ServerProcess 보호되어 있는 정적으로 프로퍼티

The active (or null) server process
protected static Process ServerProcess
리턴 Process