OSDN Git Service

First version
[st-ro/stro.git] / src / char / char_mapif.h
1 /**
2  * @file char_mapif.h
3  * Module purpose is to handle incoming and outgoing requests with map-server.
4  * Licensed under GNU GPL.
5  *  For more information, see LICENCE in the main folder.
6  * @author Athena Dev Teams originally in login.c
7  * @author rAthena Dev Team
8  */
9
10 #ifndef CHAR_MAPIF_H
11 #define CHAR_MAPIF_H
12
13 #ifdef  __cplusplus
14 extern "C" {
15 #endif
16
17 int chmapif_sendall(unsigned char *buf, unsigned int len);
18 int chmapif_sendallwos(int sfd, unsigned char *buf, unsigned int len);
19 int chmapif_send(int fd, unsigned char *buf, unsigned int len);
20 int chmapif_send_fame_list(int fd);
21 void chmapif_update_fame_list(int type, int index, int fame);
22 void chmapif_sendall_playercount(int users);
23 int chmapif_parse_getmapname(int fd, int id);
24 int chmapif_parse_askscdata(int fd);
25 int chmapif_parse_getusercount(int fd, int id);
26 int chmapif_parse_regmapuser(int fd, int id);
27 int chmapif_parse_reqsavechar(int fd, int id);
28 int chmapif_parse_authok(int fd);
29 int chmapif_parse_req_saveskillcooldown(int fd);
30 int chmapif_parse_req_skillcooldown(int fd);
31 int chmapif_parse_reqchangemapserv(int fd);
32 int chmapif_parse_askrmfriend(int fd);
33 int chmapif_parse_reqcharname(int fd);
34 int chmapif_parse_reqnewemail(int fd);
35 int chmapif_parse_fwlog_changestatus(int fd);
36 int chmapif_parse_updfamelist(int fd);
37 void chmapif_send_ackdivorce(int partner_id1, int partner_id2);
38 int chmapif_parse_reqdivorce(int fd);
39 int chmapif_parse_updmapinfo(int fd);
40 int chmapif_parse_setcharoffline(int fd);
41 int chmapif_parse_setalloffline(int fd, int id);
42 int chmapif_parse_setcharonline(int fd, int id);
43 int chmapif_parse_reqfamelist(int fd);
44 int chmapif_parse_save_scdata(int fd);
45 int chmapif_parse_keepalive(int fd);
46 int chmapif_parse_reqauth(int fd, int id);
47 int chmapif_parse_updmapip(int fd, int id);
48
49 int chmapif_vipack(int mapfd, uint32 aid, uint32 vip_time, uint32 groupid, uint8 flag);
50 int chmapif_parse_reqcharban(int fd);
51 int chmapif_parse_reqcharunban(int fd);
52 int chmapif_bonus_script_get(int fd);
53 int chmapif_bonus_script_save(int fd);
54
55 void chmapif_connectack(int fd, uint8 errCode);
56 void chmapif_charselres(int fd, uint32 aid, uint8 res);
57 void chmapif_changemapserv_ack(int fd, bool nok);
58
59 int chmapif_parse(int fd);
60 int chmapif_init(int fd);
61 void chmapif_server_init(int id);
62 void chmapif_server_destroy(int id);
63 void do_init_chmapif(void);
64 void chmapif_server_reset(int id);
65 void chmapif_on_disconnect(int id);
66 void do_final_chmapif(void);
67
68
69 #ifdef  __cplusplus
70 }
71 #endif
72
73 #endif  /* CHAR_MAPIF_H */
74