name
name: (FlashNotification) -> stringThe constant's name as declared.
FlashNotification.valueOf(…)
FlashNotification.DISABLED
FlashNotification.FLASH_TWO_SECONDS| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | This enum's own text for the constant, which can differ from name(); tostring(c) answers the same. |
compareTo(FlashNotification) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getType() | string | This constant's getType() value, listed on each constant. |
values() | {FlashNotification} | 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) | FlashNotification | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
DISABLED | FlashNotification | DISABLED: ordinal 0; getType() "Off". |
FLASH_TWO_SECONDS | FlashNotification | FLASH_TWO_SECONDS: ordinal 1; getType() "Flash for 2 seconds". |
SOLID_TWO_SECONDS | FlashNotification | SOLID_TWO_SECONDS: ordinal 2; getType() "Solid for 2 seconds". |
FLASH_UNTIL_CANCELLED | FlashNotification | FLASH_UNTIL_CANCELLED: ordinal 3; getType() "Flash until cancelled". |
SOLID_UNTIL_CANCELLED | FlashNotification | SOLID_UNTIL_CANCELLED: ordinal 4; getType() "Solid until cancelled". |
| Method | Returns | Description |
|---|---|---|
ClientConfig.flashNotification | FlashNotification | How notifications flash the game frame. |
FlashNotificationClass.valueOf | FlashNotification | valueOf(name): the constant named name; any other name is an error. |
FlashNotificationClass.values | {FlashNotification} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
Notification.getFlash | FlashNotification? | How it flashes the game frame. |
namename: (FlashNotification) -> stringThe constant's name as declared.
ordinalordinal: (FlashNotification) -> numberThe constant's 0-based position in values().
toStringtoString: (FlashNotification) -> stringThis enum's own text for the constant, which can differ from name(); tostring(c) answers the same.
compareTocompareTo: (FlashNotification, FlashNotification) -> numberThis ordinal less other's.
equalsequals: (FlashNotification, any) -> booleanWhether other is this constant. == answers the same.
getTypegetType: (FlashNotification) -> stringThis constant's getType() value, listed on each constant.
valuesvalues: () -> {FlashNotification}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) -> FlashNotificationvalueOf(name): the constant named name; any other name is an error.