From c482e420bcf447073ffe3ff8a106a0561e0baadd Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 10 Jan 2015 17:21:56 -0800 Subject: Use generated config for char --- src/char/char.hpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/char/char.hpp') diff --git a/src/char/char.hpp b/src/char/char.hpp index bcbdeb3..4f55c04 100644 --- a/src/char/char.hpp +++ b/src/char/char.hpp @@ -22,19 +22,36 @@ #include "fwd.hpp" +#include "../ints/udl.hpp" + #include "../generic/array.hpp" #include "../net/ip.hpp" #include "../high/mmo.hpp" +#include "consts.hpp" + namespace tmwa { -constexpr int MAX_MAP_SERVERS = 30; +namespace char_ +{ constexpr std::chrono::seconds DEFAULT_AUTOSAVE_INTERVAL = 5_min; +constexpr +GmLevel default_gm_level = GmLevel::from(0_u32); +struct AuthFifoEntry +{ + AccountId account_id; + CharId char_id; + int login_id1, login_id2; + IP4Address ip; + int delflag; + SEX sex; + unsigned short packet_tmw_version; +}; struct mmo_map_server { @@ -54,4 +71,5 @@ void char_log(XString line); #define CHAR_LOG(fmt, ...) \ char_log(STRPRINTF(fmt, ## __VA_ARGS__)) +} // namespace char_ } // namespace tmwa -- cgit v1.2.3-60-g2f50