OpenTTD
network_base.h
Go to the documentation of this file.
1 /* $Id: network_base.h 22423 2011-05-04 20:24:23Z rubidium $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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/>.
8  */
9 
12 #ifndef NETWORK_BASE_H
13 #define NETWORK_BASE_H
14 
15 #ifdef ENABLE_NETWORK
16 
17 #include "network_type.h"
18 #include "core/address.h"
19 #include "../core/pool_type.hpp"
20 #include "../company_type.h"
21 
25 
27 struct NetworkClientInfo : NetworkClientInfoPool::PoolItem<&_networkclientinfo_pool> {
30  byte client_lang;
33 
40 
42 };
43 
49 #define FOR_ALL_CLIENT_INFOS_FROM(var, start) FOR_ALL_ITEMS_FROM(NetworkClientInfo, clientinfo_index, var, start)
50 
55 #define FOR_ALL_CLIENT_INFOS(var) FOR_ALL_CLIENT_INFOS_FROM(var, 0)
56 
57 #endif /* ENABLE_NETWORK */
58 #endif /* NETWORK_BASE_H */