|
ManaPlus
|
Go to the documentation of this file.
22 #ifndef NET_RECVPACKETDEFINE_H
23 #define NET_RECVPACKETDEFINE_H
25 #define packet(pname, pid, sz, pfunc, ver) \
26 mPackets[pid].name = #pname; \
27 mPackets[pid].len = sz; \
28 mPackets[pid].func = pfunc; \
29 mPackets[pid].version = ver
31 #define packet2(pname, pid, sz, pfunc, ver) \
32 mPackets[(pid) + (evolPacketOffset)].name = #pname; \
33 mPackets[(pid) + (evolPacketOffset)].len = sz; \
34 mPackets[(pid) + (evolPacketOffset)].func = pfunc; \
35 mPackets[(pid) + (evolPacketOffset)].version = ver