| 1 | /* |
| 2 | * Copyright (C) 2001 faster ([email protected]) |
| 3 | * Copyright (C) 2001 sousou ([email protected]) |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | */ |
| 19 | #ifndef INCLUDED_DBSPACKET_H |
| 20 | #define INCLUDED_DBSPACKET_Hcxx . . $ `src/d2dbs/dbspacket.h:20:9`! |
| 21 | |
| 22 | #include "common/bn_type.h"cxx . . $ `<file>/src/common/bn_type.h`/ |
| 23 | #include "dbserver.h"cxx . . $ `<file>/src/d2dbs/dbserver.h`/ |
| 24 | |
| 25 | namespace pvpgncxx . . $ pvpgn/ |
| 26 | { |
| 27 | |
| 28 | namespace d2dbscxx . . $ pvpgn/d2dbs/ |
| 29 | { |
| 30 | |
| 31 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_0# { |
| 32 | bn_shortcxx . . $ pvpgn/bn_short# sizecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_0#size.; |
| 33 | bn_shortcxx . . $ pvpgn/bn_short# typecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_0#type.; |
| 34 | bn_intcxx . . $ pvpgn/bn_int# seqnocxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_0#seqno.; |
| 35 | } t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header#; |
| 36 | |
| 37 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_1# { |
| 38 | bn_bytecxx . . $ pvpgn/bn_byte# cclasscxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_1#cclass.; |
| 39 | } t_d2gs_d2dbs_connectcxx . . $ pvpgn/d2dbs/t_d2gs_d2dbs_connect#; |
| 40 | #define CONNECT_CLASS_D2GS_TO_D2DBScxx . . $ `src/d2dbs/dbspacket.h:40:9`! 0x65 |
| 41 | |
| 42 | #define D2GS_D2DBS_SAVE_DATA_REQUESTcxx . . $ `src/d2dbs/dbspacket.h:42:9`! 0x30 |
| 43 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_2# { |
| 44 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_2#h.; |
| 45 | bn_shortcxx . . $ pvpgn/bn_short# datatypecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_2#datatype.; |
| 46 | bn_shortcxx . . $ pvpgn/bn_short# datalencxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_2#datalen.; |
| 47 | /* AccountName */ |
| 48 | /* CharName */ |
| 49 | /* data */ |
| 50 | } t_d2gs_d2dbs_save_data_requestcxx . . $ pvpgn/d2dbs/t_d2gs_d2dbs_save_data_request#; |
| 51 | #define D2GS_DATA_CHARSAVEcxx . . $ `src/d2dbs/dbspacket.h:51:9`! 0x01 |
| 52 | #define D2GS_DATA_PORTRAITcxx . . $ `src/d2dbs/dbspacket.h:52:9`! 0x02 |
| 53 | |
| 54 | #define D2DBS_D2GS_SAVE_DATA_REPLYcxx . . $ `src/d2dbs/dbspacket.h:54:9`! 0x30 |
| 55 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_3# { |
| 56 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_3#h.; |
| 57 | bn_intcxx . . $ pvpgn/bn_int# resultcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_3#result.; |
| 58 | bn_shortcxx . . $ pvpgn/bn_short# datatypecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_3#datatype.; |
| 59 | /* CharName */ |
| 60 | } t_d2dbs_d2gs_save_data_replycxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_save_data_reply#; |
| 61 | #define D2DBS_SAVE_DATA_SUCCESScxx . . $ `src/d2dbs/dbspacket.h:61:9`! 0 |
| 62 | #define D2DBS_SAVE_DATA_FAILEDcxx . . $ `src/d2dbs/dbspacket.h:62:9`! 1 |
| 63 | |
| 64 | #define D2GS_D2DBS_GET_DATA_REQUESTcxx . . $ `src/d2dbs/dbspacket.h:64:9`! 0x31 |
| 65 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_4# { |
| 66 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_4#h.; |
| 67 | bn_shortcxx . . $ pvpgn/bn_short# datatypecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_4#datatype.; |
| 68 | /* AccountName */ |
| 69 | /* CharName */ |
| 70 | } t_d2gs_d2dbs_get_data_requestcxx . . $ pvpgn/d2dbs/t_d2gs_d2dbs_get_data_request#; |
| 71 | |
| 72 | #define D2DBS_D2GS_GET_DATA_REPLYcxx . . $ `src/d2dbs/dbspacket.h:72:9`! 0x31 |
| 73 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5# { |
| 74 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5#h.; |
| 75 | bn_intcxx . . $ pvpgn/bn_int# resultcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5#result.; |
| 76 | bn_intcxx . . $ pvpgn/bn_int# charcreatetimecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5#charcreatetime.; |
| 77 | bn_intcxx . . $ pvpgn/bn_int# allowladdercxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5#allowladder.; |
| 78 | bn_shortcxx . . $ pvpgn/bn_short# datatypecxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5#datatype.; |
| 79 | bn_shortcxx . . $ pvpgn/bn_short# datalencxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_5#datalen.; |
| 80 | /* CharName */ |
| 81 | /* data */ |
| 82 | } t_d2dbs_d2gs_get_data_replycxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_get_data_reply#; |
| 83 | |
| 84 | #define D2DBS_GET_DATA_SUCCESScxx . . $ `src/d2dbs/dbspacket.h:84:9`! 0 |
| 85 | #define D2DBS_GET_DATA_FAILEDcxx . . $ `src/d2dbs/dbspacket.h:85:9`! 1 |
| 86 | #define D2DBS_GET_DATA_CHARLOCKEDcxx . . $ `src/d2dbs/dbspacket.h:86:9`! 2 |
| 87 | |
| 88 | #define D2GS_D2DBS_UPDATE_LADDERcxx . . $ `src/d2dbs/dbspacket.h:88:9`! 0x32 |
| 89 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6# { |
| 90 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6#h.; |
| 91 | bn_intcxx . . $ pvpgn/bn_int# charlevelcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6#charlevel.; |
| 92 | bn_intcxx . . $ pvpgn/bn_int# charexplowcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6#charexplow.; |
| 93 | bn_intcxx . . $ pvpgn/bn_int# charexphighcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6#charexphigh.; |
| 94 | bn_shortcxx . . $ pvpgn/bn_short# charclasscxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6#charclass.; |
| 95 | bn_shortcxx . . $ pvpgn/bn_short# charstatuscxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_6#charstatus.; |
| 96 | /* CharName */ |
| 97 | /* RealmName */ |
| 98 | } t_d2gs_d2dbs_update_laddercxx . . $ pvpgn/d2dbs/t_d2gs_d2dbs_update_ladder#; |
| 99 | |
| 100 | #define D2GS_D2DBS_CHAR_LOCKcxx . . $ `src/d2dbs/dbspacket.h:100:9`! 0x33 |
| 101 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_7# { |
| 102 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_7#h.; |
| 103 | bn_intcxx . . $ pvpgn/bn_int# lockstatuscxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_7#lockstatus.; |
| 104 | /* CharName */ |
| 105 | /* RealmName */ |
| 106 | } t_d2gs_d2dbs_char_lockcxx . . $ pvpgn/d2dbs/t_d2gs_d2dbs_char_lock#; |
| 107 | |
| 108 | #define D2DBS_D2GS_ECHOREQUESTcxx . . $ `src/d2dbs/dbspacket.h:108:9`! 0x34 |
| 109 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_8# { |
| 110 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_8#h.; |
| 111 | } t_d2dbs_d2gs_echorequestcxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_echorequest#; |
| 112 | |
| 113 | #define D2GS_D2DBS_ECHOREPLYcxx . . $ `src/d2dbs/dbspacket.h:113:9`! 0x34 |
| 114 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_9# { |
| 115 | t_d2dbs_d2gs_headercxx . . $ pvpgn/d2dbs/t_d2dbs_d2gs_header# hcxx . . $ pvpgn/d2dbs/$anonymous_type_6178153f25976681_9#h.; |
| 116 | } t_d2gs_d2dbs_echoreplycxx . . $ pvpgn/d2dbs/t_d2gs_d2dbs_echoreply#; |
| 117 | |
| 118 | |
| 119 | extern int dbs_packet_handlecxx . . $ pvpgn/d2dbs/dbs_packet_handle(4c445778b4dc1c4d).(t_d2dbs_connectioncxx . . $ pvpgn/d2dbs/t_d2dbs_connection# * conn); |
| 120 | extern int dbs_keepalivecxx . . $ pvpgn/d2dbs/dbs_keepalive(b126dc7c1de90089).(void); |
| 121 | extern int dbs_check_timeoutcxx . . $ pvpgn/d2dbs/dbs_check_timeout(b126dc7c1de90089).(void); |
| 122 | |
| 123 | } |
| 124 | |
| 125 | } |
| 126 | |
| 127 | #endif |