| 1 | /* |
| 2 | * Copyright (C) 2001 sousou ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | #ifndef INCLUDED_D2LADDER_H |
| 19 | #define INCLUDED_D2LADDER_Hcxx . . $ `src/d2dbs/d2ladder.h:19:9`! |
| 20 | |
| 21 | #include <cstdio> |
| 22 | #include <cstddef> |
| 23 | #include "common/list.h"cxx . . $ `<file>/src/common/list.h`/ |
| 24 | #include "common/d2cs_d2dbs_ladder.h"cxx . . $ `<file>/src/common/d2cs_d2dbs_ladder.h`/ |
| 25 | #define JUST_NEED_TYPEScxx . . $ `src/d2dbs/d2ladder.h:25:9`! |
| 26 | #include "d2cs/d2charfile.h"cxx . . $ `<file>/src/d2cs/d2charfile.h`/ |
| 27 | #undef JUST_NEED_TYPEScxx . . $ `src/d2dbs/d2ladder.h:25:9`! |
| 28 | |
| 29 | #define LADDER_BACKUP_PREFIXcxx . . $ `src/d2dbs/d2ladder.h:29:9`! "ladderbk" |
| 30 | #define DEFAULT_LADDER_DIRcxx . . $ `src/d2dbs/d2ladder.h:30:9`! "var/ladders" |
| 31 | #define LADDERFILE_CHECKSUM_OFFSETcxx . . $ `src/d2dbs/d2ladder.h:31:9`! offsetofcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:431:9`!(t_d2ladderfile_header,checksum) |
| 32 | |
| 33 | namespace pvpgncxx . . $ pvpgn/ |
| 34 | { |
| 35 | |
| 36 | namespace d2dbscxx . . $ pvpgn/d2dbs/ |
| 37 | { |
| 38 | |
| 39 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_0# |
| 40 | { |
| 41 | unsigned int experiencecxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_0#experience.; |
| 42 | unsigned short statuscxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_0#status.; |
| 43 | unsigned char levelcxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_0#level.; |
| 44 | unsigned char chclasscxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_0#chclass.; |
| 45 | char charnamecxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_0#charname.[MAX_CHARNAME_LENcxx . . $ MAX_CHARNAME_LEN.]; |
| 46 | } t_d2ladder_infocxx . . $ pvpgn/d2dbs/t_d2ladder_info#; |
| 47 | |
| 48 | typedef structcxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_1# |
| 49 | { |
| 50 | unsigned int typecxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_1#type.; |
| 51 | t_d2ladder_infocxx . . $ pvpgn/d2dbs/t_d2ladder_info# * infocxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_1#info.; |
| 52 | unsigned int lencxx . . $ pvpgn/d2dbs/$anonymous_type_3f65ca4b0d707bc_1#len.; |
| 53 | } t_d2laddercxx . . $ pvpgn/d2dbs/t_d2ladder#; |
| 54 | |
| 55 | typedef t_listcxx . . $ pvpgn/t_list# t_d2ladderlistcxx . . $ pvpgn/d2dbs/t_d2ladderlist#; |
| 56 | |
| 57 | #define D2LADDER_MAXNUMcxx . . $ `src/d2dbs/d2ladder.h:57:9`! 200 |
| 58 | #define D2LADDER_OVERALL_MAXNUMcxx . . $ `src/d2dbs/d2ladder.h:58:9`! 1000 |
| 59 | #define D2LADDER_MAXTYPEcxx . . $ `src/d2dbs/d2ladder.h:59:9`! 35 |
| 60 | |
| 61 | extern int d2dbs_d2ladder_initcxx . . $ pvpgn/d2dbs/d2dbs_d2ladder_init(b126dc7c1de90089).(void); |
| 62 | extern int d2dbs_d2ladder_destroycxx . . $ pvpgn/d2dbs/d2dbs_d2ladder_destroy(b126dc7c1de90089).(void); |
| 63 | extern int d2ladder_rebuildcxx . . $ pvpgn/d2dbs/d2ladder_rebuild(b126dc7c1de90089).(void); |
| 64 | extern int d2ladder_updatecxx . . $ pvpgn/d2dbs/d2ladder_update(dc63872956a40282).(t_d2ladder_infocxx . . $ pvpgn/d2dbs/t_d2ladder_info# * pcharladderinfo); |
| 65 | extern int d2ladder_printcxx . . $ pvpgn/d2dbs/d2ladder_print(89bc1efcdac0ca22).(stdcxx . . $ std/::FILEcxx . . $ std/FILE# * ladderstrm); |
| 66 | extern int d2ladder_saveladdercxx . . $ pvpgn/d2dbs/d2ladder_saveladder(b126dc7c1de90089).(void); |
| 67 | |
| 68 | } |
| 69 | |
| 70 | } |
| 71 | |
| 72 | #endif |