211
|
1 |
#ifndef NETWORK_H
|
|
2 |
#define NETWORK_H
|
|
3 |
|
|
4 |
typedef struct NetworkGameInfo {
|
|
5 |
char server_name[40]; // name of the game
|
|
6 |
char server_revision[8]; // server game version
|
|
7 |
byte server_lang; // langid
|
|
8 |
byte players_max; // max players allowed on server
|
|
9 |
byte players_on; // current count of players on server
|
|
10 |
uint16 game_date; // current date
|
|
11 |
char game_password[10]; // should fit ... 10 chars
|
|
12 |
char map_name[40]; // map which is played ["random" for a randomized map]
|
|
13 |
uint map_width; // map width / 8
|
|
14 |
uint map_height; // map height / 8
|
|
15 |
byte map_set; // graphical set
|
|
16 |
} NetworkGameInfo;
|
|
17 |
|
|
18 |
//typedef struct NetworkGameList;
|
|
19 |
|
|
20 |
typedef struct NetworkGameList {
|
|
21 |
NetworkGameInfo item;
|
|
22 |
uint32 ip;
|
|
23 |
uint16 port;
|
|
24 |
struct NetworkGameList * _next;
|
|
25 |
} NetworkGameList;
|
|
26 |
|
|
27 |
NetworkGameInfo _network_game;
|
|
28 |
NetworkGameList * _network_game_list;
|
|
29 |
|
|
30 |
#endif /* NETWORK_H */
|