| 1 | /* |
| 2 | * Copyright (C) 2000,2001 Onlyer ([email protected]) |
| 3 | * Copyright (C) 2001 faster ([email protected]) |
| 4 | * Copyright (C) 2001 sousou ([email protected]) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; either version 2 |
| 9 | * of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 | */ |
| 20 | #ifndef INCLUDED_D2CS_D2GS_CHARACTER_H |
| 21 | #define INCLUDED_D2CS_D2GS_CHARACTER_Hcxx . . $ `src/common/d2cs_d2gs_character.h:21:9`! |
| 22 | |
| 23 | #include "common/bn_type.h"cxx . . $ `<file>/src/common/bn_type.h`/ |
| 24 | #include "common/field_sizes.h"cxx . . $ `<file>/src/common/field_sizes.h`/ |
| 25 | |
| 26 | #ifdef D2GS |
| 27 | # include "bn_types.h" |
| 28 | #pragma pack(push, character_h, 1) |
| 29 | #endif |
| 30 | |
| 31 | #define D2CHARINFO_MAGICWORDcxx . . $ `src/common/d2cs_d2gs_character.h:31:9`! 0x12345678 |
| 32 | #define D2CHARINFO_VERSIONcxx . . $ `src/common/d2cs_d2gs_character.h:32:9`! 0x00010000 |
| 33 | #define D2CHARINFO_PORTRAIT_PADSIZEcxx . . $ `src/common/d2cs_d2gs_character.h:33:9`! 30 |
| 34 | |
| 35 | namespace pvpgncxx . . $ pvpgn/ |
| 36 | { |
| 37 | |
| 38 | typedef structcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0# |
| 39 | { |
| 40 | bn_intcxx . . $ pvpgn/bn_int# magicwordcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#magicword.; /* static for check */ |
| 41 | bn_intcxx . . $ pvpgn/bn_int# versioncxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#version.; /* charinfo file version */ |
| 42 | bn_intcxx . . $ pvpgn/bn_int# create_timecxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#create_time.; /* character creation time */ |
| 43 | bn_intcxx . . $ pvpgn/bn_int# last_timecxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#last_time.; /* character last access time */ |
| 44 | bn_intcxx . . $ pvpgn/bn_int# checksumcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#checksum.; |
| 45 | bn_intcxx . . $ pvpgn/bn_int# total_play_timecxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#total_play_time.; /* total in game play time */ |
| 46 | bn_intcxx . . $ pvpgn/bn_int# reservedcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#reserved.[6]; |
| 47 | unsigned char charnamecxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#charname.[MAX_CHARNAME_LENcxx . . $ MAX_CHARNAME_LEN.]; |
| 48 | unsigned char accountcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#account.[MAX_USERNAME_LENcxx . . $ MAX_USERNAME_LEN.]; |
| 49 | unsigned char realmnamecxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_0#realmname.[MAX_REALMNAME_LENcxx . . $ MAX_REALMNAME_LEN.]; |
| 50 | } t_d2charinfo_headercxx . . $ pvpgn/t_d2charinfo_header#; |
| 51 | |
| 52 | typedef structcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_1# |
| 53 | { |
| 54 | bn_intcxx . . $ pvpgn/bn_int# experiencecxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_1#experience.; |
| 55 | bn_intcxx . . $ pvpgn/bn_int# charstatuscxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_1#charstatus.; |
| 56 | bn_intcxx . . $ pvpgn/bn_int# charlevelcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_1#charlevel.; |
| 57 | bn_intcxx . . $ pvpgn/bn_int# charclasscxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_1#charclass.; |
| 58 | } t_d2charinfo_summarycxx . . $ pvpgn/t_d2charinfo_summary#; |
| 59 | |
| 60 | typedef structcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2# |
| 61 | { |
| 62 | bn_shortcxx . . $ pvpgn/bn_short# headercxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#header.; /* 0x84 0x80 */ |
| 63 | bn_bytecxx . . $ pvpgn/bn_byte# gfxcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#gfx.[11]; |
| 64 | bn_bytecxx . . $ pvpgn/bn_byte# chclasscxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#chclass.; |
| 65 | bn_bytecxx . . $ pvpgn/bn_byte# colorcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#color.[11]; |
| 66 | bn_bytecxx . . $ pvpgn/bn_byte# levelcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#level.; |
| 67 | bn_bytecxx . . $ pvpgn/bn_byte# statuscxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#status.; |
| 68 | |
| 69 | |
| 70 | |
| 71 | bn_bytecxx . . $ pvpgn/bn_byte# u1cxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#u1.[3]; |
| 72 | bn_bytecxx . . $ pvpgn/bn_byte# laddercxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#ladder.; /* need not be 0xff and 0 to make character displayed as ladder character */ |
| 73 | /* client only check this bit */ |
| 74 | bn_bytecxx . . $ pvpgn/bn_byte# u2cxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#u2.[2]; |
| 75 | bn_bytecxx . . $ pvpgn/bn_byte# endcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_2#end.; /* 0x00 */ |
| 76 | } t_d2charinfo_portraitcxx . . $ pvpgn/t_d2charinfo_portrait#; |
| 77 | |
| 78 | typedef structcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_3# |
| 79 | { |
| 80 | t_d2charinfo_headercxx . . $ pvpgn/t_d2charinfo_header# headercxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_3#header.; |
| 81 | t_d2charinfo_portraitcxx . . $ pvpgn/t_d2charinfo_portrait# portraitcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_3#portrait.; |
| 82 | bn_bytecxx . . $ pvpgn/bn_byte# padcxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_3#pad.[D2CHARINFO_PORTRAIT_PADSIZEcxx . . $ `src/common/d2cs_d2gs_character.h:33:9`!]; |
| 83 | t_d2charinfo_summarycxx . . $ pvpgn/t_d2charinfo_summary# summarycxx . . $ pvpgn/$anonymous_type_2b39c4fbe0b22632_3#summary.; |
| 84 | } t_d2charinfo_filecxx . . $ pvpgn/t_d2charinfo_file#; |
| 85 | |
| 86 | } |
| 87 | |
| 88 | #ifdef D2GS |
| 89 | #pragma pack(pop, character_h) |
| 90 | #endif |
| 91 | |
| 92 | #endif |