C# 클래스 DeveloperCommands.Devcom

Contains methods for loading, prompting for, and executing commands using the Devcom engine.
파일 보기 프로젝트 열기: TheBerkin/Devcom

공개 프로퍼티들

프로퍼티 타입 설명
OnPrint PrintCallback

공개 메소드들

메소드 설명
CreateCommand ( MethodInfo method, string name, string description, string category, DeveloperCommands.ContextFilter filter = null ) : DeveloperCommands.Command

Creates a new command using the specified method, metadata, and an optional filter.

Load ( bool loadConfig = true ) : void

Scans all assemblies in the current application domain, and their references, for command/convar definitions.

Log ( object value ) : void

Prints an object's string value to the Devcom output.

SaveConfig ( ) : void

Saves the current configuration of the engine.

SearchCommands ( string query, bool beginsWith = true ) : IEnumerable

Searches for commands containing the specified substring and returns a collection of matches.

SearchConvars ( string query, bool beginsWith = true ) : IEnumerable

Searches for convars containing the specified substring and returns a collection of matches.

SendCommandAsync ( DeveloperCommands.Context context, string command ) : void

Executes a command string asynchronously under the specified context.

SendCommandAsync ( string command ) : void

Executes a command string asynchronously under the default context.

Submit ( DeveloperCommands.Context context, string command ) : void

Executes a command string under the specified context.

Submit ( string command ) : void

Executes a command string under the default context.

TranslateCommand ( DeveloperCommands.Context context, string command ) : DeveloperCommands.Call

Translates a command string into a reusable Call object.

메소드 상세

CreateCommand() 공개 정적인 메소드

Creates a new command using the specified method, metadata, and an optional filter.
public static CreateCommand ( MethodInfo method, string name, string description, string category, DeveloperCommands.ContextFilter filter = null ) : DeveloperCommands.Command
method System.Reflection.MethodInfo The method to associate with the command.
name string The name of the command.
description string The description of the command.
category string The category under which to place the command.
filter DeveloperCommands.ContextFilter The filter rules to apply to the command.
리턴 DeveloperCommands.Command

Load() 공개 정적인 메소드

Scans all assemblies in the current application domain, and their references, for command/convar definitions.
public static Load ( bool loadConfig = true ) : void
loadConfig bool Indicates if the engine should load a configuration file.
리턴 void

Log() 공개 정적인 메소드

Prints an object's string value to the Devcom output.
public static Log ( object value ) : void
value object The value to print.
리턴 void

SaveConfig() 공개 정적인 메소드

Saves the current configuration of the engine.
public static SaveConfig ( ) : void
리턴 void

SearchCommands() 공개 정적인 메소드

Searches for commands containing the specified substring and returns a collection of matches.
public static SearchCommands ( string query, bool beginsWith = true ) : IEnumerable
query string The query to search for.
beginsWith bool Indicates if the search should only return results that begin with the query.
리턴 IEnumerable

SearchConvars() 공개 정적인 메소드

Searches for convars containing the specified substring and returns a collection of matches.
public static SearchConvars ( string query, bool beginsWith = true ) : IEnumerable
query string The query to search for.
beginsWith bool Indicates if the search should only return results that begin with the query.
리턴 IEnumerable

SendCommandAsync() 공개 정적인 메소드

Executes a command string asynchronously under the specified context.
public static SendCommandAsync ( DeveloperCommands.Context context, string command ) : void
context DeveloperCommands.Context The context under which to execute the command.
command string The command to execute.
리턴 void

SendCommandAsync() 공개 정적인 메소드

Executes a command string asynchronously under the default context.
public static SendCommandAsync ( string command ) : void
command string The command to execute.
리턴 void

Submit() 공개 정적인 메소드

Executes a command string under the specified context.
public static Submit ( DeveloperCommands.Context context, string command ) : void
context DeveloperCommands.Context The context under which to execute the command.
command string The command to execute.
리턴 void

Submit() 공개 정적인 메소드

Executes a command string under the default context.
public static Submit ( string command ) : void
command string The command to execute.
리턴 void

TranslateCommand() 공개 정적인 메소드

Translates a command string into a reusable Call object.
public static TranslateCommand ( DeveloperCommands.Context context, string command ) : DeveloperCommands.Call
context DeveloperCommands.Context The context to attach to the call.
command string The command string to translate.
리턴 DeveloperCommands.Call

프로퍼티 상세

OnPrint 공개적으로 정적으로 프로퍼티

If assigned, this callback will be executed when Print() is called.
public static PrintCallback OnPrint
리턴 PrintCallback