summaryrefslogtreecommitdiff
path: root/src/net/recvpacketdefine.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-13 00:40:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-13 00:40:44 +0300
commitc28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1 (patch)
tree414bd0a0e2cfee87e9d57857d071edcf92a7974a /src/net/recvpacketdefine.h
parent906331c5a512e54424b148a2a89590bc03a704ff (diff)
downloadplus-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.tar.gz
plus-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.tar.bz2
plus-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.tar.xz
plus-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.zip
Add offset for all defined evol packets.
For now offset always 0.
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