C# Class idTech4.idConsole

显示文件 Open project: iainmckay/idtech4.net

Public Methods

Method Description
ClearInputHistory ( ) : void
ClearWarnings ( string reason ) : void
DeveloperWrite ( string format ) : void

Prints message that only shows up if the "developer" cvar is set.

DeveloperWriteLine ( string format ) : void

Prints message that only shows up if the "developer" cvar is set.

Error ( int localizationKey ) : void
Error ( string format ) : void

Throws an exception. Normal errors just abort to the game loop, which is appropriate for media or dynamic logic errors.

FatalError ( string format ) : void

Dump out of the game to a system dialog.

PrintWarnings ( ) : void
Warning ( string format ) : void

Prints WARNING messages and adds the message to a queue to be printed later on.

Write ( string format ) : void

Both client and server can use this, and it will output to the appropriate place.

WriteLine ( string format ) : void

Both client and server can use this, and it will output to the appropriate place.

Private Methods

Method Description
AddToConsoleBuffer ( string msg ) : void
AddToDedicatedBuffer ( string msg ) : void

Method Details

ClearInputHistory() public static method

public static ClearInputHistory ( ) : void
return void

ClearWarnings() public static method

public static ClearWarnings ( string reason ) : void
reason string
return void

DeveloperWrite() public static method

Prints message that only shows up if the "developer" cvar is set.
public static DeveloperWrite ( string format ) : void
format string
return void

DeveloperWriteLine() public static method

Prints message that only shows up if the "developer" cvar is set.
public static DeveloperWriteLine ( string format ) : void
format string
return void

Error() public static method

public static Error ( int localizationKey ) : void
localizationKey int
return void

Error() public static method

Throws an exception. Normal errors just abort to the game loop, which is appropriate for media or dynamic logic errors.
public static Error ( string format ) : void
format string
return void

FatalError() public static method

Dump out of the game to a system dialog.
public static FatalError ( string format ) : void
format string
return void

PrintWarnings() public static method

public static PrintWarnings ( ) : void
return void

Warning() public static method

Prints WARNING messages and adds the message to a queue to be printed later on.
public static Warning ( string format ) : void
format string
return void

Write() public static method

Both client and server can use this, and it will output to the appropriate place.
public static Write ( string format ) : void
format string
return void

WriteLine() public static method

Both client and server can use this, and it will output to the appropriate place.
public static WriteLine ( string format ) : void
format string
return void