1 |
#ifndef MARIUSNET_PUBLIC_H |
2 |
#define MARIUSNET_PUBLIC_H |
3 |
|
4 |
extern unsigned char MsNet_Running; |
5 |
|
6 |
unsigned char MSNet_Login(char* username, char* password); |
7 |
void MSNet_SendChat( char* msg ); |
8 |
void MSNet_RoomExit(); |
9 |
void MSNet_DrawGames(); |
10 |
extern char MariusLogin[32]; |
11 |
|
12 |
typedef struct |
13 |
{ |
14 |
short unknown16; |
15 |
short type; |
16 |
int options; |
17 |
int timelimit; |
18 |
int checksum; |
19 |
short difficulty; |
20 |
short maxplayers; |
21 |
short teamrandomseed; |
22 |
short maxteams; //-1 |
23 |
int planningtime; |
24 |
int unusedint; |
25 |
int unusedint_2; |
26 |
short unknown16_2; |
27 |
short pluginflag; |
28 |
char pluginlist[512]; |
29 |
int clientversion;//0xc136e436 |
30 |
int unknownint; |
31 |
short status; |
32 |
short numplayers; |
33 |
char action; |
34 |
char pad[3]; |
35 |
char Buffer[128]; |
36 |
} m_gamedescription; |
37 |
|
38 |
typedef struct |
39 |
{ |
40 |
short port; |
41 |
short zero; |
42 |
m_gamedescription g; |
43 |
} m_announcegame; |
44 |
|
45 |
int MSNet_CreateGame( m_announcegame* Game ); |
46 |
|
47 |
#endif |