char_mapif.hpp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #ifndef _CHAR_MAPIF_HPP_
  10. #define _CHAR_MAPIF_HPP_
  11. #include "../common/cbasetypes.hpp"
  12. int chmapif_sendall(unsigned char *buf, unsigned int len);
  13. int chmapif_sendallwos(int sfd, unsigned char *buf, unsigned int len);
  14. int chmapif_send(int fd, unsigned char *buf, unsigned int len);
  15. int chmapif_send_fame_list(int fd);
  16. void chmapif_update_fame_list(int type, int index, int fame);
  17. void chmapif_sendall_playercount(int users);
  18. int chmapif_parse_getmapname(int fd, int id);
  19. int chmapif_parse_askscdata(int fd);
  20. int chmapif_parse_getusercount(int fd, int id);
  21. int chmapif_parse_regmapuser(int fd, int id);
  22. int chmapif_parse_reqsavechar(int fd, int id);
  23. int chmapif_parse_authok(int fd);
  24. int chmapif_parse_req_saveskillcooldown(int fd);
  25. int chmapif_parse_req_skillcooldown(int fd);
  26. int chmapif_parse_reqchangemapserv(int fd);
  27. int chmapif_parse_askrmfriend(int fd);
  28. int chmapif_parse_reqcharname(int fd);
  29. int chmapif_parse_reqnewemail(int fd);
  30. int chmapif_parse_fwlog_changestatus(int fd);
  31. int chmapif_parse_updfamelist(int fd);
  32. void chmapif_send_ackdivorce(int partner_id1, int partner_id2);
  33. int chmapif_parse_reqdivorce(int fd);
  34. int chmapif_parse_updmapinfo(int fd);
  35. int chmapif_parse_setcharoffline(int fd);
  36. int chmapif_parse_setalloffline(int fd, int id);
  37. int chmapif_parse_setcharonline(int fd, int id);
  38. int chmapif_parse_reqfamelist(int fd);
  39. int chmapif_parse_save_scdata(int fd);
  40. int chmapif_parse_keepalive(int fd);
  41. int chmapif_parse_reqauth(int fd, int id);
  42. int chmapif_parse_updmapip(int fd, int id);
  43. int chmapif_vipack(int mapfd, uint32 aid, uint32 vip_time, uint32 groupid, uint8 flag);
  44. int chmapif_parse_reqcharban(int fd);
  45. int chmapif_parse_reqcharunban(int fd);
  46. int chmapif_bonus_script_get(int fd);
  47. int chmapif_bonus_script_save(int fd);
  48. void chmapif_connectack(int fd, uint8 errCode);
  49. void chmapif_charselres(int fd, uint32 aid, uint8 res);
  50. void chmapif_changemapserv_ack(int fd, bool nok);
  51. int chmapif_parse(int fd);
  52. int chmapif_init(int fd);
  53. void chmapif_server_init(int id);
  54. void chmapif_server_destroy(int id);
  55. void do_init_chmapif(void);
  56. void chmapif_server_reset(int id);
  57. void chmapif_on_disconnect(int id);
  58. void do_final_chmapif(void);
  59. #endif /* _CHAR_MAPIF_HPP_ */