10 #ifndef NETWORK_TYPE_H
11 #define NETWORK_TYPE_H
13 #include "../core/enum_type.hpp"
29 NETWORK_VEH_TRAIN = 0,
43 SERVER_GAME_TYPE_LOCAL = 0,
44 SERVER_GAME_TYPE_PUBLIC,
45 SERVER_GAME_TYPE_INVITE_ONLY,
93 NETWORK_ACTION_SERVER_MESSAGE,
95 NETWORK_ACTION_CHAT_COMPANY,
96 NETWORK_ACTION_CHAT_CLIENT,
97 NETWORK_ACTION_GIVE_MONEY,
98 NETWORK_ACTION_NAME_CHANGE,
99 NETWORK_ACTION_COMPANY_SPECTATOR,
100 NETWORK_ACTION_COMPANY_JOIN,
101 NETWORK_ACTION_COMPANY_NEW,
102 NETWORK_ACTION_KICKED,
103 NETWORK_ACTION_EXTERNAL_CHAT,
111 NETWORK_ERROR_GENERAL,
114 NETWORK_ERROR_DESYNC,
115 NETWORK_ERROR_SAVEGAME_FAILED,
116 NETWORK_ERROR_CONNECTION_LOST,
117 NETWORK_ERROR_ILLEGAL_PACKET,
118 NETWORK_ERROR_NEWGRF_MISMATCH,
121 NETWORK_ERROR_NOT_AUTHORIZED,
122 NETWORK_ERROR_NOT_EXPECTED,
123 NETWORK_ERROR_WRONG_REVISION,
124 NETWORK_ERROR_NAME_IN_USE,
125 NETWORK_ERROR_WRONG_PASSWORD,
126 NETWORK_ERROR_COMPANY_MISMATCH,
127 NETWORK_ERROR_KICKED,
128 NETWORK_ERROR_CHEATER,
130 NETWORK_ERROR_TOO_MANY_COMMANDS,
131 NETWORK_ERROR_TIMEOUT_PASSWORD,
132 NETWORK_ERROR_TIMEOUT_COMPUTER,
133 NETWORK_ERROR_TIMEOUT_MAP,
134 NETWORK_ERROR_TIMEOUT_JOIN,
135 NETWORK_ERROR_INVALID_CLIENT_NAME,
136 NETWORK_ERROR_NOT_ON_ALLOW_LIST,
137 NETWORK_ERROR_NO_AUTHENTICATION_METHOD_AVAILABLE,
150 bool Contains(std::string_view key)
const;
151 bool Add(std::string_view key);
152 bool Remove(std::string_view key);