NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_cd_data.hpp
1
#pragma once
2
3
#include <types.h>
4
#include <game/bases/d_actor_data.hpp>
5
#include <game/mLib/m_vec.hpp>
6
7
#define CD_BLOCK_COUNT 14
8
9
// @unofficial
10
struct
sBlockInfo
{
11
u32 mOffset;
12
u32 mSize;
13
};
14
15
/// @unofficial
16
struct
sTilesetData
{
17
char
mTileset0[32];
18
char
mTileset1[32];
19
char
mTileset2[32];
20
char
mTileset3[32];
21
};
22
23
/// @unofficial
24
class
sOptionData
{
25
public
:
26
enum
FLAG_e {
27
WRAP_AROUND_EDGES = BIT_FLAG(0),
28
};
29
30
char
mPad1[0x8];
31
u16 mFlags;
32
char
mPad2[0xa];
33
};
34
35
/// @unofficial
36
struct
sScrollData
{
37
u8 mPad1[0x10];
38
u16 mID;
39
u8 mPad2[0x6];
40
};
41
42
/// @unofficial
43
struct
sBlock4Data
{
44
u8 mPad[0x8];
45
};
46
47
/// @unofficial
48
struct
sBgData
{
49
u16 mID;
50
u8 mPad[0x16];
51
};
52
53
/// @unofficial
54
struct
sNextGotoData
{
55
u8 mPad1[0x8];
56
u8 mID;
57
u8 mPad2[0xb];
58
};
59
60
/// @unofficial
61
struct
sMapActorData
{
62
63
ProfileName
getProfileName() {
64
return
dActorData_c::getMapActorInfo(mMapActorID)->mProfileName;
65
}
66
67
u16 mMapActorID;
68
u16 mX, mY;
69
u8 mEventNums[2];
70
u32 mParam;
71
u8 mAreaNo;
72
u8 mLayer;
73
};
74
75
/// @unofficial
76
struct
sBlock8Data
{
77
u8 mPad[4];
78
};
79
80
struct
sRangePosSize
{
81
u16 mX, mY;
82
u16 mWidth, mHeight;
83
};
84
85
struct
sRangeData
:
sRangePosSize
{
86
u8 mID;
87
u8 mPad[2];
88
};
89
90
/// @unofficial
91
struct
sAreaData
{
92
sRangePosSize
mRangeData;
93
u16 mColorObj, mColorBG;
94
u8 mID;
95
u8 mScroll;
96
u8 mZoomType, mZoomID, mZoomChange;
97
u8 mMaskNo;
98
u8 mBg2, mBg3;
99
u8 mDirection;
100
u8 m_15;
101
u8 mAreaBgm, mBgmMode;
102
};
103
104
/// @unofficial
105
struct
sScrollAreaData
{
106
u8 mPad[0x14];
107
};
108
109
/// @unofficial
110
struct
sRailInfoData
{
111
u8 mID;
112
u16 mNodeIdx, mCount;
113
u16 mFlags;
114
};
115
116
/// @unofficial
117
struct
sRailNodeData
{
118
short
mX, mY;
119
float
mSpeed;
120
float
mAccel;
121
short
mDelay;
122
u16 mFlags;
123
};
sOptionData
Definition
d_cd_data.hpp:24
ProfileName
u16 ProfileName
The name of a profile. Value is a fProfile::PROFILE_NAME_e.
Definition
f_profile.hpp:32
sAreaData
Definition
d_cd_data.hpp:91
sBgData
Definition
d_cd_data.hpp:48
sBlock4Data
Definition
d_cd_data.hpp:43
sBlock8Data
Definition
d_cd_data.hpp:76
sBlockInfo
Definition
d_cd_data.hpp:10
sMapActorData
Definition
d_cd_data.hpp:61
sNextGotoData
Definition
d_cd_data.hpp:54
sRailInfoData
Definition
d_cd_data.hpp:110
sRailNodeData
Definition
d_cd_data.hpp:117
sRangeData
Definition
d_cd_data.hpp:85
sRangePosSize
Definition
d_cd_data.hpp:80
sScrollAreaData
Definition
d_cd_data.hpp:105
sScrollData
Definition
d_cd_data.hpp:36
sTilesetData
Definition
d_cd_data.hpp:16
include
game
bases
d_cd_data.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.15.0