name
name: (WorldType) -> stringThe constant's name as declared.
WorldType.valueOf(…)
WorldType.MEMBERS
WorldType.PVP| 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(WorldType) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {WorldType} | 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) | WorldType | valueOf(name): the constant named name; any other name is an error. |
fromMask(number) | {[WorldType]: boolean} | Every type whose flag bit mask sets, as a set: {[WorldType.PVP] = true}. |
toMask({[WorldType]: boolean}) | number | The flag bits of every type in types, a set ({[WorldType.PVP] = true}) or an array. |
isPvpWorld({[WorldType]: boolean}) | boolean | Whether any of worldTypes (a set or an array) is PVP or DEADMAN. |
| Field | Type | Description |
|---|---|---|
MEMBERS | WorldType | MEMBERS: ordinal 0. |
PVP | WorldType | PVP: ordinal 1. |
BOUNTY | WorldType | BOUNTY: ordinal 2. |
PVP_ARENA | WorldType | PVP_ARENA: ordinal 3. |
SKILL_TOTAL | WorldType | SKILL_TOTAL: ordinal 4. |
QUEST_SPEEDRUNNING | WorldType | QUEST_SPEEDRUNNING: ordinal 5. |
HIGH_RISK | WorldType | HIGH_RISK: ordinal 6. |
HARDCORE_MAIN | WorldType | HARDCORE_MAIN: ordinal 7. |
LAST_MAN_STANDING | WorldType | LAST_MAN_STANDING: ordinal 8. |
BETA_WORLD | WorldType | BETA_WORLD: ordinal 9. |
LEGACY_ONLY | WorldType | LEGACY_ONLY: ordinal 10. |
EOC_ONLY | WorldType | EOC_ONLY: ordinal 11. |
NOSAVE_MODE | WorldType | NOSAVE_MODE: ordinal 12. |
TOURNAMENT_WORLD | WorldType | TOURNAMENT_WORLD: ordinal 13. |
FRESH_START_WORLD | WorldType | FRESH_START_WORLD: ordinal 14. |
DEADMAN | WorldType | DEADMAN: ordinal 15. |
SEASONAL | WorldType | SEASONAL: ordinal 16. |
| Method | Returns | Description |
|---|---|---|
Client.getWorldType | {[WorldType]: boolean} | The current world's types, as a set (WorldType.fromMask of its flags). |
World.getTypes | {[WorldType]: boolean} | Its types. |
WorldTypeClass.fromMask | {[WorldType]: boolean} | Every type whose flag bit mask sets, as a set: {[WorldType.PVP] = true}. |
WorldTypeClass.valueOf | WorldType | valueOf(name): the constant named name; any other name is an error. |
WorldTypeClass.values | {WorldType} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
WorldUtilClass.toWorldTypes | {[WorldType]: boolean} | The client's WorldTypes of the world list's ones (TOURNAMENT is the client's TOURNAMENT_WORLD). |
namename: (WorldType) -> stringThe constant's name as declared.
ordinalordinal: (WorldType) -> numberThe constant's 0-based position in values().
toStringtoString: (WorldType) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (WorldType, WorldType) -> numberThis ordinal less other's.
equalsequals: (WorldType, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {WorldType}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) -> WorldTypevalueOf(name): the constant named name; any other name is an error.
fromMaskfromMask: (number) -> {[WorldType]: boolean}Every type whose flag bit mask sets, as a set: {[WorldType.PVP] = true}.
toMasktoMask: ({[WorldType]: boolean}) -> numberThe flag bits of every type in types, a set ({[WorldType.PVP] = true}) or an array.
isPvpWorldisPvpWorld: ({[WorldType]: boolean}) -> booleanWhether any of worldTypes (a set or an array) is PVP or DEADMAN.