summaryrefslogtreecommitdiff
path: root/src/proto2/map-user.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto2/map-user.hpp')
-rw-r--r--src/proto2/map-user.hpp3
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