extern unsigned char packetbuffer[1024], packetsend[1024];
extern int packetsize, packetsendsize;

void Packet(char id);
void PacketAddByte(char b);

#define PACKET_MAPN 0
#define PACKET_MAPN_SIZE 22
#define PACKET_JOIN 1
#define PACKET_JOIN_SIZE 25
#define PACKET_MOVE 2
#define PACKET_MOVE_SIZE (1+GP_NUM_PLAYERS)
#define PACKET_QUIT 3
#define PACKET_QUIT_SIZE 2
#define PACKET_WEAP 4
#define PACKET_WEAP_SIZE 7
#define PACKET_STRT 5
#define PACKET_STRT_SIZE 1
#define PACKET_PLNM 6
#define PACKET_PLNM_SIZE 2
#define PACKET_LOCL 7
#define PACKET_LOCL_SIZE 2
#define PACKET_GAME 8
#define PACKET_GAME_SIZE 16
#define PACKET_CHAT 9
#define PACKET_CHAT_SIZE 52
#define PACKET_TEAM 10
#define PACKET_TEAM_SIZE 3

#define CLIENT_WEAP 0
#define CLIENT_WEAP_SIZE 6
#define CLIENT_JNRQ 1
#define CLIENT_JNRQ_SIZE 24
#define CLIENT_MOVE 2
#define CLIENT_MOVE_SIZE 2
#define CLIENT_QUIT 3
#define CLIENT_QUIT_SIZE 1
#define CLIENT_CHAT 4
#define CLIENT_CHAT_SIZE 51
#define CLIENT_BEGIN 5
#define CLIENT_BEGIN_SIZE 1
#define CLIENT_TEAM 6
#define CLIENT_TEAM_SIZE 2

