C# 클래스 CryEngine.CVar

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

공개 메소드들

메소드 설명
Get ( string name ) : CVar

Retrieve a console variable by name - not case sensitive

Register ( string name, float value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar

Registers a new console variable with the specified default value.

Register ( string name, int value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar

Registers a new console variable with the specified default value.

Register ( string name, string value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar

Registers a new console variable with the specified default value.

RegisterFloat ( string name, float &value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar

Registers a new console variable that will update the user defined float.

RegisterInt ( string name, int &value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar

Registers a new console variable that will update the user defined integer.

TryGet ( string name, CVar &cvar ) : bool

Firstly checks whether a specified CVar is valid, then if so, modifies the cvar reference

Unregister ( string name, bool delete = false ) : void

Unregisters an existing console variable

비공개 메소드들

메소드 설명
Register ( CryEngine.CVarAttribute attribute, MemberInfo memberInfo, float &value ) : CVar
Register ( CryEngine.CVarAttribute attribute, MemberInfo memberInfo, int &value ) : CVar
Register ( CryEngine.CVarAttribute attribute, MemberInfo memberInfo, string value ) : CVar
RegisterInternal ( string name, object value, string help, CVarFlags flags ) : CVar

메소드 상세

Get() 공개 정적인 메소드

Retrieve a console variable by name - not case sensitive
public static Get ( string name ) : CVar
name string The name of the CVar to retrieve
리턴 CVar

Register() 공개 정적인 메소드

Registers a new console variable with the specified default value.
public static Register ( string name, float value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar
name string console variable name
value float default value of the console variable
help string help text that is shown when you use ? in the console
flags CVarFlags
리턴 CVar

Register() 공개 정적인 메소드

Registers a new console variable with the specified default value.
public static Register ( string name, int value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar
name string console variable name
value int default value of the console variable
help string help text that is shown when you use ? in the console
flags CVarFlags
리턴 CVar

Register() 공개 정적인 메소드

Registers a new console variable with the specified default value.
public static Register ( string name, string value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar
name string console variable name
value string default value of the console variable
help string help text that is shown when you use ? in the console
flags CVarFlags
리턴 CVar

RegisterFloat() 공개 정적인 메소드

Registers a new console variable that will update the user defined float.
public static RegisterFloat ( string name, float &value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar
name string console variable name
value float reference to the memory that will be updated
help string help text that is shown when you use ? in the console
flags CVarFlags
리턴 CVar

RegisterInt() 공개 정적인 메소드

Registers a new console variable that will update the user defined integer.
public static RegisterInt ( string name, int &value, string help = "", CVarFlags flags = CVarFlags.None ) : CVar
name string console variable name
value int reference to the memory that will be updated
help string help text that is shown when you use ? in the console
flags CVarFlags
리턴 CVar

TryGet() 공개 정적인 메소드

Firstly checks whether a specified CVar is valid, then if so, modifies the cvar reference
public static TryGet ( string name, CVar &cvar ) : bool
name string The name of the CVar to retrieve
cvar CVar The CVar object to modify (usually blank)
리턴 bool

Unregister() 공개 정적인 메소드

Unregisters an existing console variable
public static Unregister ( string name, bool delete = false ) : void
name string
delete bool
리턴 void