diff options
Diffstat (limited to 'src/char/char.hpp')
-rw-r--r-- | src/char/char.hpp | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/char/char.hpp b/src/char/char.hpp index a9c786f..4f55c04 100644 --- a/src/char/char.hpp +++ b/src/char/char.hpp @@ -22,18 +22,36 @@ #include "fwd.hpp" -#include "../strings/fwd.hpp" +#include "../ints/udl.hpp" #include "../generic/array.hpp" #include "../net/ip.hpp" -#include "../mmo/mmo.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 { @@ -53,4 +71,5 @@ void char_log(XString line); #define CHAR_LOG(fmt, ...) \ char_log(STRPRINTF(fmt, ## __VA_ARGS__)) +} // namespace char_ } // namespace tmwa |