diff options
author | frosch <frosch@openttd.org> | 2020-04-05 15:42:03 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-04-05 18:36:21 +0100 |
commit | 7fe291667fbe75f01b03980fa3654b1bf387117f (patch) | |
tree | 47cac4a87a943b6aea7992218a9c4012c9597bc6 /src | |
parent | 2514f43909b08c62a9e34703bcdbb89081faef9c (diff) | |
download | openttd-7fe291667fbe75f01b03980fa3654b1bf387117f.tar.xz |
Fix #8060, 5880f14: Restore admin network API compatibility.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_type.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/network/network_type.h b/src/network/network_type.h index 5f796b83d..5a7705346 100644 --- a/src/network/network_type.h +++ b/src/network/network_type.h @@ -74,18 +74,23 @@ enum NetworkPasswordType { NETWORK_COMPANY_PASSWORD, ///< The password of the company. }; -/** Destination of our chat messages. */ +/** + * Destination of our chat messages. + * @warning The values of the enum items are part of the admin network API. Only append at the end. + */ enum DestType { DESTTYPE_BROADCAST, ///< Send message/notice to all clients (All) DESTTYPE_TEAM, ///< Send message/notice to everyone playing the same company (Team) DESTTYPE_CLIENT, ///< Send message/notice to only a certain client (Private) }; -/** Actions that can be used for NetworkTextMessage */ +/** + * Actions that can be used for NetworkTextMessage. + * @warning The values of the enum items are part of the admin network API. Only append at the end. + */ enum NetworkAction { NETWORK_ACTION_JOIN, NETWORK_ACTION_LEAVE, - NETWORK_ACTION_KICKED, NETWORK_ACTION_SERVER_MESSAGE, NETWORK_ACTION_CHAT, NETWORK_ACTION_CHAT_COMPANY, @@ -95,9 +100,13 @@ enum NetworkAction { NETWORK_ACTION_COMPANY_SPECTATOR, NETWORK_ACTION_COMPANY_JOIN, NETWORK_ACTION_COMPANY_NEW, + NETWORK_ACTION_KICKED, }; -/** The error codes we send around in the protocols. */ +/** + * The error codes we send around in the protocols. + * @warning The values of the enum items are part of the admin network API. Only append at the end. + */ enum NetworkErrorCode { NETWORK_ERROR_GENERAL, // Try to use this one like never |