From 8b3c16e6152a527f9aec1a88a9eed74119de7000 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 22 Aug 2007 07:52:33 +0000 Subject: major engine cleanup. dependency on baselib removed. engine is now C code (not ansi tho). some other cruft removed aswell --- src/engine/protocol.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/engine/protocol.h (limited to 'src/engine/protocol.h') diff --git a/src/engine/protocol.h b/src/engine/protocol.h new file mode 100644 index 00000000..81c0480c --- /dev/null +++ b/src/engine/protocol.h @@ -0,0 +1,34 @@ +#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, + NETMSG_SNAPACK, + + /* sent by both */ + NETMSG_ERROR, +}; + + +/* this should be revised */ +enum +{ + MAX_NAME_LENGTH=32, + MAX_CLANNAME_LENGTH=32, + MAX_INPUT_SIZE=128, + MAX_SNAPSHOT_PACKSIZE=1200 +}; -- cgit 1.4.1