diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-05-18 02:43:55 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-05-19 17:10:09 -0700 |
commit | 2410aeb608329ed57a31315effdfd5a751788616 (patch) | |
tree | 4b961100e9aec99c16c6ccae7f1857e763d58b14 /src/mmo/enums.hpp | |
parent | fccd01bd0fba297531595b51ffb8db044ed6f22c (diff) | |
download | tmwa-2410aeb608329ed57a31315effdfd5a751788616.tar.gz tmwa-2410aeb608329ed57a31315effdfd5a751788616.tar.bz2 tmwa-2410aeb608329ed57a31315effdfd5a751788616.tar.xz tmwa-2410aeb608329ed57a31315effdfd5a751788616.zip |
Convert login/char and login/admin server components to proto-v2
Diffstat (limited to 'src/mmo/enums.hpp')
-rw-r--r-- | src/mmo/enums.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mmo/enums.hpp b/src/mmo/enums.hpp index a7dcc89..52e1009 100644 --- a/src/mmo/enums.hpp +++ b/src/mmo/enums.hpp @@ -145,4 +145,17 @@ SEX sex_from_char(char c) } } +inline +bool native_to_network(char *network, SEX native) +{ + *network = sex_to_char(native); + return true; +} +inline +bool network_to_native(SEX *native, char network) +{ + *native = sex_from_char(network); + return true; +} + #endif // TMWA_MMO_ENUMS_HPP |