C# Class Axiom.Scripting.ScriptEnumAttribute

Inheritance: System.Attribute
Mostrar archivo Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
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

Method Details

GetLegalValues() public static method

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

GetScriptAttribute() public static method

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
return string

Lookup() public static method

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
return object

ScriptEnumAttribute() public method

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