diff options
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 |