name
name: (ChatMessageType) -> stringThe constant's name as declared.
Chat message types, as onChatMessage reports them.
ChatMessageType.valueOf(…)
ChatMessageType.of(…)
ChatMessageType.GAMEMESSAGE| 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(ChatMessageType) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getType() | number | This constant's getType() value, listed on each constant. |
values() | {ChatMessageType} | 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) | ChatMessageType | valueOf(name): the constant named name; any other name is an error. |
of(number) | ChatMessageType | The constant whose getType() is type, or UNKNOWN. |
| Field | Type | Description |
|---|---|---|
GAMEMESSAGE | ChatMessageType | GAMEMESSAGE: ordinal 0; getType() 0. |
MODCHAT | ChatMessageType | MODCHAT: ordinal 1; getType() 1. |
PUBLICCHAT | ChatMessageType | PUBLICCHAT: ordinal 2; getType() 2. |
PRIVATECHAT | ChatMessageType | PRIVATECHAT: ordinal 3; getType() 3. |
ENGINE | ChatMessageType | ENGINE: ordinal 4; getType() 4. |
LOGINLOGOUTNOTIFICATION | ChatMessageType | LOGINLOGOUTNOTIFICATION: ordinal 5; getType() 5. |
PRIVATECHATOUT | ChatMessageType | PRIVATECHATOUT: ordinal 6; getType() 6. |
MODPRIVATECHAT | ChatMessageType | MODPRIVATECHAT: ordinal 7; getType() 7. |
FRIENDSCHAT | ChatMessageType | FRIENDSCHAT: ordinal 8; getType() 9. |
FRIENDSCHATNOTIFICATION | ChatMessageType | FRIENDSCHATNOTIFICATION: ordinal 9; getType() 11. |
TRADE_SENT | ChatMessageType | TRADE_SENT: ordinal 10; getType() 12. |
BROADCAST | ChatMessageType | BROADCAST: ordinal 11; getType() 14. |
SNAPSHOTFEEDBACK | ChatMessageType | SNAPSHOTFEEDBACK: ordinal 12; getType() 26. |
ITEM_EXAMINE | ChatMessageType | ITEM_EXAMINE: ordinal 13; getType() 27. |
NPC_EXAMINE | ChatMessageType | NPC_EXAMINE: ordinal 14; getType() 28. |
OBJECT_EXAMINE | ChatMessageType | OBJECT_EXAMINE: ordinal 15; getType() 29. |
FRIENDNOTIFICATION | ChatMessageType | FRIENDNOTIFICATION: ordinal 16; getType() 30. |
IGNORENOTIFICATION | ChatMessageType | IGNORENOTIFICATION: ordinal 17; getType() 31. |
CLAN_CHAT | ChatMessageType | CLAN_CHAT: ordinal 18; getType() 41. |
CLAN_MESSAGE | ChatMessageType | CLAN_MESSAGE: ordinal 19; getType() 43. |
CLAN_GUEST_CHAT | ChatMessageType | CLAN_GUEST_CHAT: ordinal 20; getType() 44. |
CLAN_GUEST_MESSAGE | ChatMessageType | CLAN_GUEST_MESSAGE: ordinal 21; getType() 46. |
AUTOTYPER | ChatMessageType | AUTOTYPER: ordinal 22; getType() 90. |
MODAUTOTYPER | ChatMessageType | MODAUTOTYPER: ordinal 23; getType() 91. |
CONSOLE | ChatMessageType | CONSOLE: ordinal 24; getType() 99. |
TRADEREQ | ChatMessageType | TRADEREQ: ordinal 25; getType() 101. |
TRADE | ChatMessageType | TRADE: ordinal 26; getType() 102. |
CHALREQ_TRADE | ChatMessageType | CHALREQ_TRADE: ordinal 27; getType() 103. |
CHALREQ_FRIENDSCHAT | ChatMessageType | CHALREQ_FRIENDSCHAT: ordinal 28; getType() 104. |
SPAM | ChatMessageType | SPAM: ordinal 29; getType() 105. |
PLAYERRELATED | ChatMessageType | PLAYERRELATED: ordinal 30; getType() 106. |
TENSECTIMEOUT | ChatMessageType | TENSECTIMEOUT: ordinal 31; getType() 107. |
WELCOME | ChatMessageType | WELCOME: ordinal 32; getType() 108. |
CLAN_CREATION_INVITATION | ChatMessageType | CLAN_CREATION_INVITATION: ordinal 33; getType() 109. |
CHALREQ_CLANCHAT | ChatMessageType | CHALREQ_CLANCHAT: ordinal 34; getType() 110. |
CLAN_GIM_FORM_GROUP | ChatMessageType | CLAN_GIM_FORM_GROUP: ordinal 35; getType() 111. |
CLAN_GIM_GROUP_WITH | ChatMessageType | CLAN_GIM_GROUP_WITH: ordinal 36; getType() 112. |
CLAN_GIM_CHAT | ChatMessageType | CLAN_GIM_CHAT: ordinal 37; getType() -1. |
CLAN_GIM_MESSAGE | ChatMessageType | CLAN_GIM_MESSAGE: ordinal 38; getType() -1. |
DIALOG | ChatMessageType | DIALOG: ordinal 39; getType() 114. |
MESBOX | ChatMessageType | MESBOX: ordinal 40; getType() 115. |
NPC_SAY | ChatMessageType | NPC_SAY: ordinal 41; getType() 116. |
DIDYOUKNOW | ChatMessageType | DIDYOUKNOW: ordinal 42; getType() 117. |
LEVELUPMESSAGE | ChatMessageType | LEVELUPMESSAGE: ordinal 43; getType() 118. |
UNKNOWN | ChatMessageType | UNKNOWN: ordinal 44; getType() -1. |
| Method | Returns | Description |
|---|---|---|
ChatMessage.getType | ChatMessageType | The message's type: CLAN_GIM_CHAT / CLAN_GIM_MESSAGE for a line of your group-ironman channel. |
ChatMessageTypeClass.of | ChatMessageType | The constant whose getType() is type, or UNKNOWN. |
ChatMessageTypeClass.valueOf | ChatMessageType | valueOf(name): the constant named name; any other name is an error. |
ChatMessageTypeClass.values | {ChatMessageType} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
MessageNode.getType | ChatMessageType | The message's type: CLAN_GIM_CHAT / CLAN_GIM_MESSAGE for a line of your group-ironman channel (the game stores those as clan lines whos… |
QueuedMessage.getType | ChatMessageType? | Its type. |
namename: (ChatMessageType) -> stringThe constant's name as declared.
ordinalordinal: (ChatMessageType) -> numberThe constant's 0-based position in values().
toStringtoString: (ChatMessageType) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (ChatMessageType, ChatMessageType) -> numberThis ordinal less other's.
equalsequals: (ChatMessageType, any) -> booleanWhether other is this constant. == answers the same.
getTypegetType: (ChatMessageType) -> numberThis constant's getType() value, listed on each constant.
valuesvalues: () -> {ChatMessageType}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) -> ChatMessageTypevalueOf(name): the constant named name; any other name is an error.
ofof: (number) -> ChatMessageTypeThe constant whose getType() is type, or UNKNOWN.