1 struct rpgdummycom
: iclientcom
5 void gamedisconnect() {}
6 void parsepacketclient(int chan
, ucharbuf
&p
) {}
7 int sendpacketclient(ucharbuf
&p
, bool &reliable
, dynent
*d
) { return -1; }
8 void gameconnect(bool _remote
) {}
9 bool allowedittoggle() { return true; }
10 void writeclientinfo(FILE *f
) {}
11 void toserver(char *text
) {}
12 void changemap(const char *name
) { load_world(name
); }
15 struct rpgdummyserver
: igameserver
19 void *newinfo() { return NULL
; }
20 void deleteinfo(void *ci
) {}
22 void clientdisconnect(int n
) {}
23 int clientconnect(int n
, uint ip
) { return DISC_NONE
; }
24 void localdisconnect(int n
) {}
25 void localconnect(int n
) {}
26 const char *servername() { return "foo"; }
27 void parsepacket(int sender
, int chan
, bool reliable
, ucharbuf
&p
) {}
28 bool sendpackets() { return false; }
29 int welcomepacket(ucharbuf
&p
, int n
) { return -1; }
30 void serverinforeply(ucharbuf
&p
) {}
31 void serverupdate(int lastmillis
, int totalmillis
) {}
32 bool servercompatible(char *name
, char *sdec
, char *map
, int ping
, const vector
<int> &attr
, int np
) { return false; }
33 void serverinfostr(char *buf
, const char *name
, const char *desc
, const char *map
, int ping
, const vector
<int> &attr
, int np
) {}
34 int serverinfoport() { return 0; }
35 int serverport() { return 0; }
36 const char *getdefaultmaster() { return "localhost"; }
37 void sendservmsg(const char *s
) {}