HttpWorldType

Methods
8
Fields
17

Getting one

HttpWorldType.valueOf(…)
HttpWorldType.MEMBERS
HttpWorldType.PVP

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(HttpWorldType)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
getMask()numberThis constant's getMask() value, listed on each constant.
values(){HttpWorldType}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)HttpWorldTypevalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
MEMBERSHttpWorldTypeMEMBERS: ordinal 0; getMask() 1.
PVPHttpWorldTypePVP: ordinal 1; getMask() 4.
BOUNTYHttpWorldTypeBOUNTY: ordinal 2; getMask() 32.
PVP_ARENAHttpWorldTypePVP_ARENA: ordinal 3; getMask() 64.
SKILL_TOTALHttpWorldTypeSKILL_TOTAL: ordinal 4; getMask() 128.
QUEST_SPEEDRUNNINGHttpWorldTypeQUEST_SPEEDRUNNING: ordinal 5; getMask() 256.
HIGH_RISKHttpWorldTypeHIGH_RISK: ordinal 6; getMask() 1024.
HARDCORE_MAINHttpWorldTypeHARDCORE_MAIN: ordinal 7; getMask() 2048.
LAST_MAN_STANDINGHttpWorldTypeLAST_MAN_STANDING: ordinal 8; getMask() 16384.
BETA_WORLDHttpWorldTypeBETA_WORLD: ordinal 9; getMask() 65536.
LEGACY_ONLYHttpWorldTypeLEGACY_ONLY: ordinal 10; getMask() 4194304.
EOC_ONLYHttpWorldTypeEOC_ONLY: ordinal 11; getMask() 8388608.
NOSAVE_MODEHttpWorldTypeNOSAVE_MODE: ordinal 12; getMask() 33554432.
TOURNAMENTHttpWorldTypeTOURNAMENT: ordinal 13; getMask() 67108864.
FRESH_START_WORLDHttpWorldTypeFRESH_START_WORLD: ordinal 14; getMask() 134217728.
DEADMANHttpWorldTypeDEADMAN: ordinal 15; getMask() 536870912.
SEASONALHttpWorldTypeSEASONAL: ordinal 16; getMask() 1073741824.

Returned by

MethodReturnsDescription
HttpWorld.getTypes{[HttpWorldType]: boolean}Its types, as a set.
HttpWorldTypeClass.valueOfHttpWorldTypevalueOf(name): the constant named name; any other name is an error.
HttpWorldTypeClass.values{HttpWorldType}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

equals

equals: (HttpWorldType, any) -> boolean

Whether other is this constant. == answers the same.

values

values: () -> {HttpWorldType}

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) -> HttpWorldType

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