From b4d2f41696de385a08e5830c785ad7fc8e691992 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 16 Nov 2014 01:34:43 +0100 Subject: Moved loginif-related functions to loginif.c Signed-off-by: Haru --- src/char/char.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/char/char.h') 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); -- cgit v1.2.3-70-g09d2