C# 클래스 Axiom.Scripting.ScriptEnumAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
GetLegalValues ( Type type ) : string

Returns a string describing the legal values for a particular enum.

GetScriptAttribute ( int enumValue, Type type ) : string

Looks up the script attibute for the enumeration value

Lookup ( string val, Type type ) : object

Returns an actual enum value for a enum that can be used in script files.

ScriptEnumAttribute ( string val ) : System

메소드 상세

GetLegalValues() 공개 정적인 메소드

Returns a string describing the legal values for a particular enum.
public static GetLegalValues ( Type type ) : string
type System.Type
리턴 string

GetScriptAttribute() 공개 정적인 메소드

Looks up the script attibute for the enumeration value
public static GetScriptAttribute ( int enumValue, Type type ) : string
enumValue int The enumeration value
type System.Type The Enumeration
리턴 string

Lookup() 공개 정적인 메소드

Returns an actual enum value for a enum that can be used in script files.
public static Lookup ( string val, Type type ) : object
val string
type System.Type
리턴 object

ScriptEnumAttribute() 공개 메소드

public ScriptEnumAttribute ( string val ) : System
val string The value as it will appear when used in script files (.material, .overlay, etc).
리턴 System