summaryrefslogtreecommitdiff
path: root/src/char/char.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2015-01-10 17:21:56 -0800
committerBen Longbons <b.r.longbons@gmail.com>2015-01-23 01:44:26 -0800
commitc482e420bcf447073ffe3ff8a106a0561e0baadd (patch)
treefe338f43ad3cb6fb292d50b06a58958c894a806f /src/char/char.hpp
parent35b95e24ea1915acf0ef13047209f76bce6d9b7b (diff)
downloadtmwa-c482e420bcf447073ffe3ff8a106a0561e0baadd.tar.gz
tmwa-c482e420bcf447073ffe3ff8a106a0561e0baadd.tar.bz2
tmwa-c482e420bcf447073ffe3ff8a106a0561e0baadd.tar.xz
tmwa-c482e420bcf447073ffe3ff8a106a0561e0baadd.zip
Use generated config for char
Diffstat (limited to 'src/char/char.hpp')
-rw-r--r--src/char/char.hpp20
1 files changed, 19 insertions, 1 deletions
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