Difference between revisions of "ObjectType:enumtype"
Jump to navigation
Jump to search
(Created page with "== Overview == {{ObjectType-Vitals|enum|LavishScriptnone|same as Name|enum|no|void *}} The enum type provides access to get and set available values for the type. The enu...") |
|||
Line 6: | Line 6: | ||
== Members == | == Members == | ||
* [[ObjectType:string|string]] '''Name''': Name of the enum type | * [[ObjectType:string|string]] '''Name''': Name of the enum type | ||
− | * [[ | + | * [[DataType:int64|int64]] '''ValueByName['''name''']''': Retrieves a value by its name |
* [[ObjectType:string|string]] '''NameByValue['''#''']''': Retrieves a name by a given value (or for flags, a set of names from the combined value) | * [[ObjectType:string|string]] '''NameByValue['''#''']''': Retrieves a name by a given value (or for flags, a set of names from the combined value) | ||
Revision as of 00:20, 28 June 2018
Contents
Overview
enum | |
Defined By | LavishScriptnone |
Inherits | same as Name |
Reduces To | enum |
Variable Object Type | no |
Uses Sub-Types | void * |
C/C++ Type | {{{7}}} |
The enum type provides access to get and set available values for the type. The enum type can then be used directly as a LavishScript Object Type.
Members
- string Name: Name of the enum type
- int64 ValueByName[name]: Retrieves a value by its name
- string NameByValue[#]: Retrieves a name by a given value (or for flags, a set of names from the combined value)
Methods
- SetValue[name,#]: Assigns a value to a given name
- GetIterator[iterator]: Sets an iterator for iterating the available values