diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-05-20 14:36:33 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-05-20 15:27:53 -0700 |
commit | f6324ada91d412e041592598245770835991cbc6 (patch) | |
tree | c0c2e5abb284db8146f7d18bcb7280cda0fa9c07 /src/proto2/map-user.hpp | |
parent | b06dd5aaa0cf47b0b6f73ae858b2e2c267e60bbf (diff) | |
download | tmwa-f6324ada91d412e041592598245770835991cbc6.tar.gz tmwa-f6324ada91d412e041592598245770835991cbc6.tar.bz2 tmwa-f6324ada91d412e041592598245770835991cbc6.tar.xz tmwa-f6324ada91d412e041592598245770835991cbc6.zip |
Generate login/user protocol
Diffstat (limited to 'src/proto2/map-user.hpp')
-rw-r--r-- | src/proto2/map-user.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proto2/map-user.hpp b/src/proto2/map-user.hpp index 4da94cf..d68f436 100644 --- a/src/proto2/map-user.hpp +++ b/src/proto2/map-user.hpp @@ -41,6 +41,7 @@ struct Packet_Fixed<0x0212> uint16_t y = {}; }; + template<> struct NetPacket_Fixed<0x0212> { @@ -59,6 +60,7 @@ static_assert(offsetof(NetPacket_Fixed<0x0212>, x) == 12, "offsetof(NetPacket_Fi static_assert(offsetof(NetPacket_Fixed<0x0212>, y) == 14, "offsetof(NetPacket_Fixed<0x0212>, y) == 14"); static_assert(sizeof(NetPacket_Fixed<0x0212>) == 16, "sizeof(NetPacket_Fixed<0x0212>) == 16"); + inline __attribute__((warn_unused_result)) bool native_to_network(NetPacket_Fixed<0x0212> *network, Packet_Fixed<0x0212> native) { @@ -84,4 +86,5 @@ bool network_to_native(Packet_Fixed<0x0212> *native, NetPacket_Fixed<0x0212> net return rv; } + #endif // TMWA_PROTO2_MAP_USER_HPP |