From af4acff261d579428e8eef042cc5359fa392f725 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 27 May 2014 13:33:54 -0700 Subject: Generate the char server protocol --- src/mmo/ids.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mmo/ids.hpp') diff --git a/src/mmo/ids.hpp b/src/mmo/ids.hpp index ed5ab58..bfd7de9 100644 --- a/src/mmo/ids.hpp +++ b/src/mmo/ids.hpp @@ -115,6 +115,22 @@ public: return true; // LIES. But this code is going away soon anyway } + // TODO kill this code too + friend + bool native_to_network(Little16 *network, GmLevel native) + { + uint16_t tmp = native.bits; + return native_to_network(network, tmp); + } + friend + bool network_to_native(GmLevel *native, Little16 network) + { + uint16_t tmp; + bool rv = network_to_native(&tmp, network); + native->bits = tmp; + return rv; + } + friend bool native_to_network(Little32 *network, GmLevel native) { -- cgit v1.2.3-70-g09d2