Initial Comit: First commit.
[SauerEngine.git] / src / newgame / gserver.h
blob5d3da44c41a9f677d8e3cca300333a4a17a56742
1 #ifndef AGAMESERVER_H
2 #define AGAMESERVER_H
4 struct game_server : igameserver
6 ~game_server();
8 void *newinfo();
9 void deleteinfo(void *ci);
10 void serverinit();
11 void clientdisconnect(int n);
12 int clientconnect(int n, uint ip);
13 void localdisconnect(int n);
14 void localconnect(int n);
15 const char *servername();
16 void parsepacket(int sender, int chan, bool reliable, ucharbuf &p);
17 bool sendpackets();
18 int welcomepacket(ucharbuf &p, int n, ENetPacket *packet);
19 void serverinforeply(ucharbuf &q, ucharbuf &p);
20 void serverupdate(int lastmillis, int totalmillis);
21 bool servercompatible(char *name, char *sdec, char *map, int ping, const vector<int> &attr, int np);
22 void serverinfostr(char *buf, const char *name, const char *desc, const char *map, int ping, const vector<int> &attr, int np);
23 int serverinfoport();
24 int serverport();
25 const char *getdefaultmaster();
26 void sendservmsg(const char *s);
29 #endif