2007-08-22 07:52:33 +00:00
|
|
|
#include "system.h"
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NETMSG_NULL=0,
|
|
|
|
|
|
|
|
/* the first thing sent by the client
|
|
|
|
contains the version info for the client */
|
|
|
|
NETMSG_INFO=1,
|
|
|
|
|
|
|
|
/* sent by server */
|
|
|
|
NETMSG_MAP,
|
|
|
|
NETMSG_SNAP,
|
|
|
|
NETMSG_SNAPEMPTY,
|
|
|
|
NETMSG_SNAPSMALL,
|
|
|
|
|
|
|
|
/* sent by client */
|
|
|
|
NETMSG_ENTERGAME,
|
|
|
|
NETMSG_INPUT,
|
2007-09-23 21:00:57 +00:00
|
|
|
NETMSG_CMD,
|
2007-08-22 07:52:33 +00:00
|
|
|
|
|
|
|
/* sent by both */
|
2007-10-06 17:01:06 +00:00
|
|
|
NETMSG_ERROR
|
2007-08-22 07:52:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* this should be revised */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_NAME_LENGTH=32,
|
|
|
|
MAX_CLANNAME_LENGTH=32,
|
|
|
|
MAX_INPUT_SIZE=128,
|
|
|
|
MAX_SNAPSHOT_PACKSIZE=1200
|
|
|
|
};
|