RuneScapeProfileType

Methods
8
Fields
12

Getting one

RuneScapeProfileType.valueOf(…)
RuneScapeProfileType.getCurrent(…)
RuneScapeProfileType.STANDARD

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(RuneScapeProfileType)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
values(){RuneScapeProfileType}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)RuneScapeProfileTypevalueOf(name): the constant named name; any other name is an error.
getCurrent(Client)RuneScapeProfileTypeThe profile type of the world the client is on: the last constant whose test the world's types pass (BETA on a beta or no-save world, `QU…

Fields

FieldTypeDescription
STANDARDRuneScapeProfileTypeSTANDARD: ordinal 0.
BETARuneScapeProfileTypeBETA: ordinal 1.
QUEST_SPEEDRUNNINGRuneScapeProfileTypeQUEST_SPEEDRUNNING: ordinal 2.
DEADMANRuneScapeProfileTypeDEADMAN: ordinal 3.
PVP_ARENARuneScapeProfileTypePVP_ARENA: ordinal 4.
TRAILBLAZER_LEAGUERuneScapeProfileTypeTRAILBLAZER_LEAGUE: ordinal 5.
DEADMAN_REBORNRuneScapeProfileTypeDEADMAN_REBORN: ordinal 6.
SHATTERED_RELICS_LEAGUERuneScapeProfileTypeSHATTERED_RELICS_LEAGUE: ordinal 7.
TRAILBLAZER_RELOADED_LEAGUERuneScapeProfileTypeTRAILBLAZER_RELOADED_LEAGUE: ordinal 8.
RAGING_ECHOES_LEAGUERuneScapeProfileTypeRAGING_ECHOES_LEAGUE: ordinal 9.
GRID_MASTERRuneScapeProfileTypeGRID_MASTER: ordinal 10.
DEMONIC_PACTS_LEAGUERuneScapeProfileTypeDEMONIC_PACTS_LEAGUE: ordinal 11.

Returned by

MethodReturnsDescription
RuneScapeProfile.getTypeRuneScapeProfileType?The profile's type, or nil.
RuneScapeProfileTypeClass.getCurrentRuneScapeProfileTypeThe profile type of the world the client is on: the last constant whose test the world's types pass (BETA on a beta or no-save world, `QU…
RuneScapeProfileTypeClass.valueOfRuneScapeProfileTypevalueOf(name): the constant named name; any other name is an error.
RuneScapeProfileTypeClass.values{RuneScapeProfileType}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: () -> {RuneScapeProfileType}

Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

getCurrent

getCurrent: (Client) -> RuneScapeProfileType

The profile type of the world the client is on: the last constant whose test the world's types pass (BETA on a beta or no-save world, QUEST_SPEEDRUNNING, DEADMAN, PVP_ARENA on their world types, DEMONIC_PACTS_LEAGUE on a seasonal one; the retired leagues never), else STANDARD. Pass the client global; it reads the running callback's client.