name
name: (HiscoreEndpoint) -> stringThe constant's name as declared.
HiscoreEndpoint.valueOf(…)
HiscoreEndpoint.fromWorldTypes(…)
HiscoreEndpoint.NORMAL| 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(HiscoreEndpoint) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getHiscoreURL() | string | This constant's getHiscoreURL() value, listed on each constant. |
getName() | string | This constant's getName() value, listed on each constant. |
values() | {HiscoreEndpoint} | 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) | HiscoreEndpoint | valueOf(name): the constant named name; any other name is an error. |
fromWorldTypes({[WorldType]: boolean}) | HiscoreEndpoint | The hiscores a world of worldTypes (a set or an array) ranks on: SEASONAL, TOURNAMENT, DEADMAN, FRESH_START_WORLD, `HARDCORE_MAIN… |
| Field | Type | Description |
|---|---|---|
NORMAL | HiscoreEndpoint | NORMAL: ordinal 0; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool/index_lite.json", getName() "Normal". |
IRONMAN | HiscoreEndpoint | IRONMAN: ordinal 1; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_ironman/index_lite.json", getName() "Ironman". |
HARDCORE_IRONMAN | HiscoreEndpoint | HARDCORE_IRONMAN: ordinal 2; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_hardcore_ironman/index_lite.json", `ge… |
ULTIMATE_IRONMAN | HiscoreEndpoint | ULTIMATE_IRONMAN: ordinal 3; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_ultimate/index_lite.json", getName()… |
DEADMAN | HiscoreEndpoint | DEADMAN: ordinal 4; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_deadman/index_lite.json", getName() "Deadman". |
SEASONAL | HiscoreEndpoint | SEASONAL: ordinal 5; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_seasonal/index_lite.json", getName() "League… |
TOURNAMENT | HiscoreEndpoint | TOURNAMENT: ordinal 6; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_tournament/index_lite.json", getName() "To… |
FRESH_START_WORLD | HiscoreEndpoint | FRESH_START_WORLD: ordinal 7; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_fresh_start/index_lite.json", `getName(… |
PURE | HiscoreEndpoint | PURE: ordinal 8; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller_defence/index_lite.json", getName() "1 Def… |
LEVEL_3_SKILLER | HiscoreEndpoint | LEVEL_3_SKILLER: ordinal 9; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller/index_lite.json", getName() "Le… |
HARDCORE_MAIN | HiscoreEndpoint | HARDCORE_MAIN: ordinal 10; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_hardcore_mains/index_lite.json", `getName(… |
| Method | Returns | Description |
|---|---|---|
HiscoreEndpointClass.fromWorldTypes | HiscoreEndpoint | The hiscores a world of worldTypes (a set or an array) ranks on: SEASONAL, TOURNAMENT, DEADMAN, FRESH_START_WORLD, `HARDCORE_MAIN… |
HiscoreEndpointClass.valueOf | HiscoreEndpoint | valueOf(name): the constant named name; any other name is an error. |
HiscoreEndpointClass.values | {HiscoreEndpoint} | 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: (HiscoreEndpoint) -> stringThe constant's name as declared.
ordinalordinal: (HiscoreEndpoint) -> numberThe constant's 0-based position in values().
toStringtoString: (HiscoreEndpoint) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (HiscoreEndpoint, HiscoreEndpoint) -> numberThis ordinal less other's.
equalsequals: (HiscoreEndpoint, any) -> booleanWhether other is this constant. == answers the same.
getHiscoreURLgetHiscoreURL: (HiscoreEndpoint) -> stringThis constant's getHiscoreURL() value, listed on each constant.
getNamegetName: (HiscoreEndpoint) -> stringThis constant's getName() value, listed on each constant.
valuesvalues: () -> {HiscoreEndpoint}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) -> HiscoreEndpointvalueOf(name): the constant named name; any other name is an error.
fromWorldTypesfromWorldTypes: ({[WorldType]: boolean}) -> HiscoreEndpointThe hiscores a world of worldTypes (a set or an array) ranks on: SEASONAL, TOURNAMENT, DEADMAN, FRESH_START_WORLD, HARDCORE_MAIN in that order of precedence, else NORMAL.
HARDCORE_IRONMANHARDCORE_IRONMAN: HiscoreEndpointHARDCORE_IRONMAN: ordinal 2; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_hardcore_ironman/index_lite.json", getName() "Hardcore Ironman".
ULTIMATE_IRONMANULTIMATE_IRONMAN: HiscoreEndpointULTIMATE_IRONMAN: ordinal 3; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_ultimate/index_lite.json", getName() "Ultimate Ironman".
SEASONALSEASONAL: HiscoreEndpointSEASONAL: ordinal 5; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_seasonal/index_lite.json", getName() "Leagues".
TOURNAMENTTOURNAMENT: HiscoreEndpointTOURNAMENT: ordinal 6; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_tournament/index_lite.json", getName() "Tournament".
FRESH_START_WORLDFRESH_START_WORLD: HiscoreEndpointFRESH_START_WORLD: ordinal 7; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_fresh_start/index_lite.json", getName() "Fresh Start".
PUREPURE: HiscoreEndpointPURE: ordinal 8; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller_defence/index_lite.json", getName() "1 Defence Pure".
LEVEL_3_SKILLERLEVEL_3_SKILLER: HiscoreEndpointLEVEL_3_SKILLER: ordinal 9; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller/index_lite.json", getName() "Level 3 Skiller".
HARDCORE_MAINHARDCORE_MAIN: HiscoreEndpointHARDCORE_MAIN: ordinal 10; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_hardcore_mains/index_lite.json", getName() "Hardcore Main".