Update: Translations from eints
[openttd-github.git] / src / script / api / script_clientlist.hpp
blobea7859a6afe428bb66efe73d76090aa125122097
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 script_clientlist.hpp List all the clients in a game or in a company. */
10 #ifndef SCRIPT_CLIENTLIST_HPP
11 #define SCRIPT_CLIENTLIST_HPP
13 #include "script_list.hpp"
14 #include "script_company.hpp"
17 /**
18 * Creates a list of clients that are currently in game.
19 * @api game
20 * @ingroup ScriptList
22 class ScriptClientList : public ScriptList {
23 public:
24 ScriptClientList();
27 /**
28 * Creates a list of clients that are playing in the company.
29 * @api game
30 * @ingroup ScriptList
32 class ScriptClientList_Company : public ScriptList {
33 public:
34 /**
35 * @param company The company to list clients for.
37 ScriptClientList_Company(ScriptCompany::CompanyID company);
40 #endif /* SCRIPT_CIENTLIST_HPP */