Fix: [NewGRF] New engines did not have a default cargo type set. (#13146)
[openttd-github.git] / src / network / network_gui.h
blob6c2555a5bf344916bda9b40120bd51a4f9c51268
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file network_gui.h GUIs related to networking. */
10 #ifndef NETWORK_GUI_H
11 #define NETWORK_GUI_H
13 #include "../company_type.h"
14 #include "../timer/timer_game_calendar.h"
15 #include "../economy_type.h"
16 #include "../window_type.h"
17 #include "network_type.h"
18 #include "network_gamelist.h"
20 void ShowNetworkNeedPassword(std::shared_ptr<class NetworkAuthenticationPasswordRequest> request);
21 void ShowNetworkChatQueryWindow(DestType type, int dest);
22 void ShowJoinStatusWindow();
23 void ShowNetworkGameWindow();
24 void ShowClientList();
25 void ShowNetworkAskRelay(const std::string &server_connection_string, const std::string &relay_connection_string, const std::string &token);
26 void ShowNetworkAskSurvey();
27 void ShowSurveyResultTextfileWindow();
29 /** Company information stored at the client side */
30 struct NetworkCompanyInfo : NetworkCompanyStats {
31 std::string company_name; ///< Company name
32 TimerGameCalendar::Year inaugurated_year; ///< What year the company started in
33 Money company_value; ///< The company value
34 Money money; ///< The amount of money the company has
35 Money income; ///< How much did the company earn last year
36 uint16_t performance; ///< What was his performance last month?
37 bool use_password; ///< Is there a password
38 std::string clients; ///< The clients that control this company (Name1, name2, ..)
41 enum NetworkRelayWindowCloseData {
42 NRWCD_UNHANDLED = 0, ///< Relay request is unhandled.
43 NRWCD_HANDLED = 1, ///< Relay request is handled, either by user or by timeout.
46 #endif /* NETWORK_GUI_H */