Метод | Описание | |
---|---|---|
EnqueueCommand ( string command ) : void |
Enques a command in the server command queue. Server.ExecuteEnqueuedCommands() is needed to execute all enqueued commands. If you want to call multiple commands at once, use the newline character in order to seperate the commands
|
|
ExecuteCommand ( string command ) : void |
Enques and executes a command.
|
|
ExecuteEnqueuedCommands ( ) : void |
Executes all enqueued commands.
|
|
IsMapValid ( string map ) : bool |
Uses the engine function to check if a map is valid.
|
|
LoadMapListFromDirectory ( ) : string[] |
Returns a list of all valid maps in the directory.
|
|
LoadMapListFromMapcycle ( ) : string[] |
Returns a list of all valid maps in the mapcycle.
|
|
Log ( string message ) : void |
Logs a plain message. Doesn't use any decoration.
|
|
LogConsole ( string message ) : void |
Logs a plain message to the console, not in the files.
|
|
LogDeveloper ( string message ) : void | ||
LogError ( string message ) : void |
Logs an error message, uses date, mod, Error prefix.
|
|
PrecacheSound ( string filename ) : int |
Precaches sound
|
|
Print ( string message ) : void | ||
RegisterCommand ( string str, CommandDelegate cmd ) : bool |
Метод | Описание | |
---|---|---|
CommandWrapper ( ) : void | ||
Init ( ) : void | ||
Server ( ) : System | ||
SetMaxPlayers ( int maxplayers ) : void |
public static EnqueueCommand ( string command ) : void | ||
command | string |
/// The command to execute |
Результат | void |
public static ExecuteCommand ( string command ) : void | ||
command | string |
/// The command to be executed |
Результат | void |
public static ExecuteEnqueuedCommands ( ) : void | ||
Результат | void |
public static IsMapValid ( string map ) : bool | ||
map | string |
/// Name of the map |
Результат | bool |
public static LoadMapListFromDirectory ( ) : string[] | ||
Результат | string[] |
public static LoadMapListFromMapcycle ( ) : string[] | ||
Результат | string[] |
public static Log ( string message ) : void | ||
message | string |
/// Log message |
Результат | void |
public static LogConsole ( string message ) : void | ||
message | string |
/// A |
Результат | void |
public static LogDeveloper ( string message ) : void | ||
message | string | |
Результат | void |
public static LogError ( string message ) : void | ||
message | string |
/// Error message. |
Результат | void |
public static PrecacheSound ( string filename ) : int | ||
filename | string |
/// A string representing the filename |
Результат | int |
public static Print ( string message ) : void | ||
message | string | |
Результат | void |
public static RegisterCommand ( string str, CommandDelegate cmd ) : bool | ||
str | string | |
cmd | CommandDelegate | |
Результат | bool |