Debian Codegraph @

src/common/d2char_file.h

raw symbols SCIP
1 #ifndef INCLUDED_COMMON_D2CHAR_FILE
2 #define INCLUDED_COMMON_D2CHAR_FILE
3
4 #define D2CHARFILE_PADBYTE 0xff
5
6 namespace pvpgn
7 {
8
9 typedef struct {
10 /* Finish copying from bnet_protocol.h/t_d2_char_info */
11
12 bn_long experience;
13 bn_byte reservedxp[30];
14 bn_long invgold;
15 bn_long bankgold;
16 bn_long stashgold;
17 bn_long reservedgold[8];
18 bn_byte skilllvls[30];
19 bn_byte reservedskills[30];
20
21 bn_short strength;
22 bn_short vitaility;
23 bn_short dexterity;
24 bn_short energy;
25 bn_short reservedattr[4];
26
27 bn_byte questflags[4]; /* 1 byte/8 bits each act */
28 bn_byte reservedquestflags[16];
29 bn_byte waypoints[4][3]; /* 3 bytes/24 bits each act */
30 bn_byte reservedwaypoints[4][3];
31
32 /* stuff like HP, Mana are calculated dynamically... */
33
34 bn_byte inventory[80]; /* backpack got 40 spaces, double that to be safe */
35 bn_byte reservedinv[80]; /* space for expanding */
36 bn_byte belt[32]; /* largest belt holds 16, double that to be safe */
37 bn_byte reservedbelt[32]; /* space for expanding */
38
39 bn_int deathcount;
40
41 bn_byte body1unknownb1; /* For dead body... */
42 bn_byte body1unknownb2;
43 bn_byte body1helmgfx;
44 bn_byte body1bodygfx;
45 bn_byte body1leggfx;
46 bn_byte body1lhandweapon;
47 bn_byte body1lhandgfx;
48 bn_byte body1rhandweapon;
49 bn_byte body1rhandgfx;
50 bn_byte body1unknownb3;
51 bn_byte body1unknownb4;
52 bn_byte body1unknownb5;
53 bn_byte body1unknownb6;
54 bn_byte body1unknownb7;
55 bn_byte body1unknownb8;
56 bn_byte body1unknownb9;
57 bn_byte body1unknownb10;
58 bn_byte body1unknownb11;
59 bn_byte body1inventory[80]; /* backpack got 40 spaces, double that to be safe */
60 bn_byte body1reservedinv[80]; /* space for expanding */
61 bn_byte body1belt[32]; /* largest belt holds 16, double that to be safe */
62 bn_byte body1reservedbelt[32]; /* space for expanding */
63
64 bn_byte stashinv[100]; /* Forgot how big the stash is.... */
65 bn_byte reservedstash[200];
66 } t_d2char_record;
67
68 }
69
70 /* item
71 description
72 base type (1 byte)
73 item quality (unknown size)
74 Magic (blue name)
75 modifer level
76 magic dword 1
77 magic dword 2
78 */
79
80 #endif