Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_item_data.h
Go to the documentation of this file.
1#ifndef D_D_ITEM_DATA_H
2#define D_D_ITEM_DATA_H
3
5
7 /* 0x0 */ u8 mShadowSize;
8 /* 0x1 */ u8 mH;
9 /* 0x2 */ u8 mR;
10 /* 0x3 */ u8 mFlag;
11};
12
15
16 /* 0x00 */ const char* mArcName;
17 /* 0x04 */ s16 mBmdName;
18 /* 0x06 */ s16 mBtkName;
19 /* 0x08 */ s16 mBckName;
20 /* 0x0A */ s16 mBrkName;
21 /* 0x0C */ s16 mBtpName;
22 /* 0x0E */ s8 mTevFrm;
23 /* 0x0F */ s8 mBtpFrm;
24 /* 0x10 */ s16 mTexture;
25 /* 0x12 */ u8 mTexScale;
26 /* 0x14 */ s16 field_0x14;
27}; // Size: 0x18
28
30 /* 0x0 */ const char* mFieldArc;
31 /* 0x4 */ s16 mItemBmdName;
32 /* 0x6 */ s16 mItemBckName;
33 /* 0x8 */ s16 mItemBrkName;
34 /* 0xA */ u8 field_0xa;
35 /* 0xC */ u16 mHeapSize;
36}; // Size: 0x10
37
38struct dItem_data {
39 static const char* getArcName(u8 index) { return item_resource[index].mArcName; }
40
41 static s16 getBtpName(u8 index) { return item_resource[index].mBtpName; }
42
43 static s16 getBrkName(u8 index) { return item_resource[index].mBrkName; }
44
45 static s16 getBxaName(u8 index) { return -1; }
46
47 static s16 getBckName(u8 index) { return item_resource[index].mBckName; }
48
49 static s16 getBpkName(u8 index) { return -1; }
50
51 static s16 getBtkName(u8 index) { return item_resource[index].mBtkName; }
52
53 static s16 getBmdName(u8 index) { return item_resource[index].mBmdName; }
54
55 static s8 getTevFrm(u8 index) { return item_resource[index].mTevFrm; }
56
57 static s8 getBtpFrm(u8 index) { return item_resource[index].mBtpFrm; }
58
59 static s16 getTexture(u8 index) { return item_resource[index].mTexture; }
60
61 static u8 getTexScale (u8 index) { return item_resource[index].mTexScale; }
62
63 static const char* getFieldArc(u8 index) { return field_item_res[index].mFieldArc; }
64
65 static s16 getItemBmdName(u8 index) { return field_item_res[index].mItemBmdName; }
66
67 static s16 getItemBtkName(u8 index) { return -1; }
68
69 static s16 getItemBpkName(u8 index) { return -1; }
70
71 static s16 getItemBckName(u8 index) { return field_item_res[index].mItemBckName; }
72
73 static s16 getItemBxaName(u8 index) { return -1; }
74
75 static s16 getItemBrkName(u8 index) { return field_item_res[index].mItemBrkName; }
76
77 static s16 getItemBtpName(u8 index) { return -1; }
78
79 static BOOL chkFlag(u8 index, int flag) { return item_info[index].mFlag & flag; }
80
81 static u8 getShadowSize(u8 index) { return item_info[index].mShadowSize; }
82
83 static const u8 getH(u8 index) { return item_info[index].mH; }
84
85 static const u8 getR(u8 index) { return item_info[index].mR; }
86
87 static u16 getFieldHeapSize(u8 index) { return field_item_res[index].mHeapSize; }
88
91 static dItem_itemInfo item_info[255];
92};
93
94#endif /* D_D_ITEM_DATA_H */
static volatile BOOL flag
Definition dspproc.cpp:20
Definition d_item_data.h:38
static u8 getShadowSize(u8 index)
Definition d_item_data.h:81
static const char * getArcName(u8 index)
Definition d_item_data.h:39
static dItem_itemInfo item_info[255]
Definition d_item_data.h:522
static s16 getItemBmdName(u8 index)
Definition d_item_data.h:65
static u8 getTexScale(u8 index)
Definition d_item_data.h:61
static dItem_itemResource item_resource[255]
Definition d_item_data.h:4
static s16 getBxaName(u8 index)
Definition d_item_data.h:45
static s8 getBtpFrm(u8 index)
Definition d_item_data.h:57
static s16 getItemBtpName(u8 index)
Definition d_item_data.h:77
static s16 getTexture(u8 index)
Definition d_item_data.h:59
static s16 getBtpName(u8 index)
Definition d_item_data.h:41
static s16 getBpkName(u8 index)
Definition d_item_data.h:49
static s8 getTevFrm(u8 index)
Definition d_item_data.h:55
static s16 getBtkName(u8 index)
Definition d_item_data.h:51
static const u8 getH(u8 index)
Definition d_item_data.h:83
static const u8 getR(u8 index)
Definition d_item_data.h:85
static s16 getItemBxaName(u8 index)
Definition d_item_data.h:73
static u16 getFieldHeapSize(u8 index)
Definition d_item_data.h:87
static BOOL chkFlag(u8 index, int flag)
Definition d_item_data.h:79
static const char * getFieldArc(u8 index)
Definition d_item_data.h:63
static dItem_fieldItemResource field_item_res[255]
Definition d_item_data.h:263
static s16 getItemBckName(u8 index)
Definition d_item_data.h:71
static s16 getItemBpkName(u8 index)
Definition d_item_data.h:69
static s16 getBckName(u8 index)
Definition d_item_data.h:47
static s16 getItemBtkName(u8 index)
Definition d_item_data.h:67
static s16 getBmdName(u8 index)
Definition d_item_data.h:53
static s16 getBrkName(u8 index)
Definition d_item_data.h:43
static s16 getItemBrkName(u8 index)
Definition d_item_data.h:75
Definition d_item_data.h:29
u16 mHeapSize
Definition d_item_data.h:35
const char * mFieldArc
Definition d_item_data.h:30
u8 field_0xa
Definition d_item_data.h:34
s16 mItemBmdName
Definition d_item_data.h:31
s16 mItemBrkName
Definition d_item_data.h:33
s16 mItemBckName
Definition d_item_data.h:32
Definition d_item_data.h:6
u8 mR
Definition d_item_data.h:9
u8 mShadowSize
Definition d_item_data.h:7
u8 mH
Definition d_item_data.h:8
u8 mFlag
Definition d_item_data.h:10
Definition d_item_data.h:13
s16 mBmdName
Definition d_item_data.h:17
s16 mBtkName
Definition d_item_data.h:18
s16 mBtpName
Definition d_item_data.h:21
s16 mBckName
Definition d_item_data.h:19
const char * mArcName
Definition d_item_data.h:16
s16 mBrkName
Definition d_item_data.h:20
s16 mTexture
Definition d_item_data.h:24
s16 field_0x14
Definition d_item_data.h:26
s8 mTevFrm
Definition d_item_data.h:22
u8 mTexScale
Definition d_item_data.h:25
s8 mBtpFrm
Definition d_item_data.h:23
f32 getTexScale()
Definition d_item_data.h:14
int BOOL
Definition types.h:27
signed char s8
Definition types.h:4
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8