diff options
author | Haru <haru@dotalux.com> | 2014-11-16 01:34:43 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-11-16 07:16:21 +0100 |
commit | b4d2f41696de385a08e5830c785ad7fc8e691992 (patch) | |
tree | 5541fe17ed60f908467c74f94dc1dcebe01e6859 /src/char/char.h | |
parent | 98809d97bebc734be769318ad374c37b65dfd1e1 (diff) | |
download | hercules-b4d2f41696de385a08e5830c785ad7fc8e691992.tar.gz hercules-b4d2f41696de385a08e5830c785ad7fc8e691992.tar.bz2 hercules-b4d2f41696de385a08e5830c785ad7fc8e691992.tar.xz hercules-b4d2f41696de385a08e5830c785ad7fc8e691992.zip |
Moved loginif-related functions to loginif.c
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.h')
-rw-r--r-- | src/char/char.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/char/char.h b/src/char/char.h index 3bedbd0ce..a6707a7f9 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -5,6 +5,7 @@ #ifndef COMMON_CHAR_H #define COMMON_CHAR_H +#include "../common/cbasetypes.h" #include "../common/core.h" // CORE_ST_LAST #include "../common/db.h" @@ -42,6 +43,14 @@ struct online_char_data { int pincode_enable; }; +struct mmo_map_server { + int fd; + uint32 ip; + uint16 port; + int users; + unsigned short *map; + unsigned short maps; +}; #define MAX_MAP_SERVERS 2 @@ -120,10 +129,19 @@ struct char_auth_node { * char interface **/ struct char_interface { + struct mmo_map_server server[MAX_MAP_SERVERS]; int login_fd; int char_fd; DBMap* online_char_db; // int account_id -> struct online_char_data* DBMap* char_db_; + char userid[NAME_LENGTH]; + char passwd[NAME_LENGTH]; + char server_name[20]; + uint32 ip; + uint16 port; + int server_type; + int new_display; + int (*waiting_disconnect) (int tid, int64 tick, int id, intptr_t data); int (*delete_char_sql) (int char_id); DBData (*create_online_char_data) (DBKey key, va_list args); |