C# 클래스 CryEngine.ConsoleCommand

파일 보기 프로젝트 열기: PoppermostProductions/CryMono

공개 메소드들

메소드 설명
Execute ( string command, bool silent = false ) : void

Executes a string in the console

Register ( string name, ConsoleCommandDelegate func, string comment = "", CVarFlags flags = CVarFlags.None, bool overwrite = false ) : void

Register a new console command.

Unregister ( string name ) : void

비공개 메소드들

메소드 설명
OnCommand ( string fullCommandLine ) : void

메소드 상세

Execute() 공개 정적인 메소드

Executes a string in the console
public static Execute ( string command, bool silent = false ) : void
command string console command e.g. "map testy" - no leading slash
silent bool suppresses log in error case and logging the command to the console
리턴 void

Register() 공개 정적인 메소드

Register a new console command.
public static Register ( string name, ConsoleCommandDelegate func, string comment = "", CVarFlags flags = CVarFlags.None, bool overwrite = false ) : void
name string Command name.
func ConsoleCommandDelegate Delegate to the console command function to be called when command is invoked.
comment string Help string, will be displayed when typing in console "command ?".
flags CVarFlags Bitfield consist of VF_ flags (e.g. VF_CHEAT)
overwrite bool
리턴 void

Unregister() 공개 정적인 메소드

public static Unregister ( string name ) : void
name string
리턴 void