name
name: (LootRecordType) -> stringThe constant's name as declared.
LootRecordType.valueOf(…)
LootRecordType.NPC
LootRecordType.PLAYER| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(LootRecordType) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {LootRecordType} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
valueOf(string) | LootRecordType | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
NPC | LootRecordType | NPC: ordinal 0. |
PLAYER | LootRecordType | PLAYER: ordinal 1. |
EVENT | LootRecordType | EVENT: ordinal 2. |
PICKPOCKET | LootRecordType | PICKPOCKET: ordinal 3. |
UNKNOWN | LootRecordType | UNKNOWN: ordinal 4. |
| Method | Returns | Description |
|---|---|---|
LootRecordTypeClass.valueOf | LootRecordType | valueOf(name): the constant named name; any other name is an error. |
LootRecordTypeClass.values | {LootRecordType} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
namename: (LootRecordType) -> stringThe constant's name as declared.
ordinalordinal: (LootRecordType) -> numberThe constant's 0-based position in values().
toStringtoString: (LootRecordType) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (LootRecordType, LootRecordType) -> numberThis ordinal less other's.
equalsequals: (LootRecordType, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {LootRecordType}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOfvalueOf: (string) -> LootRecordTypevalueOf(name): the constant named name; any other name is an error.