summaryrefslogtreecommitdiff
path: root/src/net/recvpacketdefine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r--src/net/recvpacketdefine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h
index 50c4badac..1ba7bba58 100644
--- a/src/net/recvpacketdefine.h
+++ b/src/net/recvpacketdefine.h
@@ -27,4 +27,10 @@
mPackets[pid].func = pfunc; \
mPackets[pid].version = ver
+#define packet2(pname, pid, sz, pfunc, ver) \
+ mPackets[pid + evolPacketOffset].name = #pname; \
+ mPackets[pid + evolPacketOffset].len = sz; \
+ mPackets[pid + evolPacketOffset].func = pfunc; \
+ mPackets[pid + evolPacketOffset].version = ver
+
#endif // NET_RECVPACKETDEFINE_H