HiscoreEndpoint

Methods
10
Fields
11

Getting one

HiscoreEndpoint.valueOf(…)
HiscoreEndpoint.fromWorldTypes(…)
HiscoreEndpoint.NORMAL

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringname(); tostring(c) answers the same.
compareTo(HiscoreEndpoint)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
getHiscoreURL()stringThis constant's getHiscoreURL() value, listed on each constant.
getName()stringThis 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)HiscoreEndpointvalueOf(name): the constant named name; any other name is an error.
fromWorldTypes({[WorldType]: boolean})HiscoreEndpointThe hiscores a world of worldTypes (a set or an array) ranks on: SEASONAL, TOURNAMENT, DEADMAN, FRESH_START_WORLD, `HARDCORE_MAIN…

Fields

FieldTypeDescription
NORMALHiscoreEndpointNORMAL: ordinal 0; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool/index_lite.json", getName() "Normal".
IRONMANHiscoreEndpointIRONMAN: ordinal 1; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_ironman/index_lite.json", getName() "Ironman".
HARDCORE_IRONMANHiscoreEndpointHARDCORE_IRONMAN: ordinal 2; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_hardcore_ironman/index_lite.json", `ge…
ULTIMATE_IRONMANHiscoreEndpointULTIMATE_IRONMAN: ordinal 3; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_ultimate/index_lite.json", getName()…
DEADMANHiscoreEndpointDEADMAN: ordinal 4; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_deadman/index_lite.json", getName() "Deadman".
SEASONALHiscoreEndpointSEASONAL: ordinal 5; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_seasonal/index_lite.json", getName() "League…
TOURNAMENTHiscoreEndpointTOURNAMENT: ordinal 6; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_tournament/index_lite.json", getName() "To…
FRESH_START_WORLDHiscoreEndpointFRESH_START_WORLD: ordinal 7; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_fresh_start/index_lite.json", `getName(…
PUREHiscoreEndpointPURE: ordinal 8; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller_defence/index_lite.json", getName() "1 Def…
LEVEL_3_SKILLERHiscoreEndpointLEVEL_3_SKILLER: ordinal 9; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller/index_lite.json", getName() "Le…
HARDCORE_MAINHiscoreEndpointHARDCORE_MAIN: ordinal 10; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_hardcore_mains/index_lite.json", `getName(…

Returned by

MethodReturnsDescription
HiscoreEndpointClass.fromWorldTypesHiscoreEndpointThe hiscores a world of worldTypes (a set or an array) ranks on: SEASONAL, TOURNAMENT, DEADMAN, FRESH_START_WORLD, `HARDCORE_MAIN…
HiscoreEndpointClass.valueOfHiscoreEndpointvalueOf(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.

Method details

values

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

valueOf: (string) -> HiscoreEndpoint

valueOf(name): the constant named name; any other name is an error.

fromWorldTypes

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 in that order of precedence, else NORMAL.

Field details

HARDCORE_IRONMAN

HARDCORE_IRONMAN: HiscoreEndpoint

HARDCORE_IRONMAN: ordinal 2; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_hardcore_ironman/index_lite.json", getName() "Hardcore Ironman".

ULTIMATE_IRONMAN

ULTIMATE_IRONMAN: HiscoreEndpoint

ULTIMATE_IRONMAN: ordinal 3; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_ultimate/index_lite.json", getName() "Ultimate Ironman".

SEASONAL

SEASONAL: HiscoreEndpoint

SEASONAL: ordinal 5; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_seasonal/index_lite.json", getName() "Leagues".

TOURNAMENT

TOURNAMENT: HiscoreEndpoint

TOURNAMENT: ordinal 6; getHiscoreURL() "https://services.runescape.com/m=hiscore_oldschool_tournament/index_lite.json", getName() "Tournament".

FRESH_START_WORLD

FRESH_START_WORLD: HiscoreEndpoint

FRESH_START_WORLD: ordinal 7; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_fresh_start/index_lite.json", getName() "Fresh Start".

PURE

PURE: HiscoreEndpoint

PURE: ordinal 8; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller_defence/index_lite.json", getName() "1 Defence Pure".

LEVEL_3_SKILLER

LEVEL_3_SKILLER: HiscoreEndpoint

LEVEL_3_SKILLER: ordinal 9; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_skiller/index_lite.json", getName() "Level 3 Skiller".

HARDCORE_MAIN

HARDCORE_MAIN: HiscoreEndpoint

HARDCORE_MAIN: ordinal 10; getHiscoreURL() "https://secure.runescape.com/m=hiscore_oldschool_hardcore_mains/index_lite.json", getName() "Hardcore Main".