name
name: (RuneScapeProfileType) -> stringThe constant's name as declared.
RuneScapeProfileType.valueOf(…)
RuneScapeProfileType.getCurrent(…)
RuneScapeProfileType.STANDARD| 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(RuneScapeProfileType) | number | This ordinal less other's. |
equals(any) | boolean | Whether 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) | RuneScapeProfileType | valueOf(name): the constant named name; any other name is an error. |
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, `QU… |
| Field | Type | Description |
|---|---|---|
STANDARD | RuneScapeProfileType | STANDARD: ordinal 0. |
BETA | RuneScapeProfileType | BETA: ordinal 1. |
QUEST_SPEEDRUNNING | RuneScapeProfileType | QUEST_SPEEDRUNNING: ordinal 2. |
DEADMAN | RuneScapeProfileType | DEADMAN: ordinal 3. |
PVP_ARENA | RuneScapeProfileType | PVP_ARENA: ordinal 4. |
TRAILBLAZER_LEAGUE | RuneScapeProfileType | TRAILBLAZER_LEAGUE: ordinal 5. |
DEADMAN_REBORN | RuneScapeProfileType | DEADMAN_REBORN: ordinal 6. |
SHATTERED_RELICS_LEAGUE | RuneScapeProfileType | SHATTERED_RELICS_LEAGUE: ordinal 7. |
TRAILBLAZER_RELOADED_LEAGUE | RuneScapeProfileType | TRAILBLAZER_RELOADED_LEAGUE: ordinal 8. |
RAGING_ECHOES_LEAGUE | RuneScapeProfileType | RAGING_ECHOES_LEAGUE: ordinal 9. |
GRID_MASTER | RuneScapeProfileType | GRID_MASTER: ordinal 10. |
DEMONIC_PACTS_LEAGUE | RuneScapeProfileType | DEMONIC_PACTS_LEAGUE: ordinal 11. |
| Method | Returns | Description |
|---|---|---|
RuneScapeProfile.getType | RuneScapeProfileType? | The profile's type, or nil. |
RuneScapeProfileTypeClass.getCurrent | 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, `QU… |
RuneScapeProfileTypeClass.valueOf | RuneScapeProfileType | valueOf(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. |
namename: (RuneScapeProfileType) -> stringThe constant's name as declared.
ordinalordinal: (RuneScapeProfileType) -> numberThe constant's 0-based position in values().
toStringtoString: (RuneScapeProfileType) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (RuneScapeProfileType, RuneScapeProfileType) -> numberThis ordinal less other's.
equalsequals: (RuneScapeProfileType, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {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.
valueOfvalueOf: (string) -> RuneScapeProfileTypevalueOf(name): the constant named name; any other name is an error.
getCurrentgetCurrent: (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, 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.