SSBM Decomp
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
#ifndef MELEE_MP_TYPES_H
2
#define MELEE_MP_TYPES_H
3
4
#include "
platform.h
"
5
6
#include <
placeholder.h
>
7
8
#include "dolphin/gx/GXStruct.h"
9
10
#include "
gr/forward.h
"
11
#include "
mp/forward.h
"
// IWYU pragma: export
12
13
#include <dolphin/mtx.h>
14
15
struct
mpIsland_80458E88_t
{
16
/* +0 */
mp_UnkStruct0
*
next
;
17
/* +4 */
mp_UnkStruct0
*
x4
;
18
/* +8 */
mp_UnkStruct0
*
x8
;
19
/* +C */
mp_UnkStruct0
*
xC
;
20
/* +10 */
mp_UnkStruct0
*
x10
;
21
/* +14 */
mp_UnkStruct0
*
x14
;
22
/* +18 */
mp_UnkStruct0
*
x18
;
23
/* +1C */
mp_UnkStruct0
*
x1C
;
24
/* +20 */
mp_UnkStruct0
*
x20
;
25
};
26
27
struct
mpIsland_PaletteEntry
{
28
mp_Terrain
kind
;
29
GXColor
color
;
30
};
31
32
struct
mpIsland_Palette
{
33
mpIsland_PaletteEntry
x0
[20];
34
};
35
36
struct
mp_UnkStruct0
{
37
/* +0 */
mp_UnkStruct0
*
next
;
38
/* +4 */
u16
x4
;
39
/* +6 */
u16
x6
;
40
/* +8 */
Vec3
x8
;
41
/* +14 */
Vec3
x14
;
42
/* +20 */
int
x20
;
43
/* +24 */
short
x24
;
44
/* +26 */
short
x26
;
45
/* +28 */
short
x28
;
46
/* +2A */
short
x2A
;
47
/* +2C */
mp_UnkStruct3
*
ptr
;
48
};
49
50
struct
MapLine
{
51
/* +0 */
u16
v0_idx
;
52
/* +2 */
u16
v1_idx
;
53
/* +4 */
s16
prev_id0
;
54
/* +6 */
s16
next_id0
;
55
/* +8 */
s16
prev_id1
;
56
/* +A */
s16
next_id1
;
57
/* +C */
u16
hi_flags
;
58
/* +E */
u16
lo_flags
;
59
};
60
61
struct
CollLine
{
62
/* +0 */
MapLine
*
x0
;
63
/* +4 */
u32
flags
;
64
};
65
66
struct
mpisland
{
67
/* +0 */
int
x0
[8];
68
/* +20 */
int
x20
[8];
69
};
70
71
struct
mp_UnkStruct3
{
72
int
x0
;
73
int
x4
;
74
int
xC
;
75
};
76
77
struct
CollVtx
{
78
/* 0x00 */
f32
x0
;
79
/* 0x04 */
f32
x4
;
80
/* 0x08 */
Vec2
pos
;
81
/* 0x10 */
float
x10
;
82
/* 0x14 */
float
x14
;
83
};
/* size = 0x18 */
84
STATIC_ASSERT
(
sizeof
(
struct
CollVtx
) == 0x18);
85
86
struct
MapJoint
{
87
/* +0 */
s16
floor_start
;
88
/* +2 */
s16
floor_count
;
89
/* +4 */
s16
ceiling_start
;
90
/* +6 */
s16
ceiling_count
;
91
/* +8 */
s16
right_wall_start
;
92
/* +A */
s16
right_wall_count
;
93
/* +C */
s16
left_wall_start
;
94
/* +E */
s16
left_wall_count
;
95
/* +10 */
s16
dynamic_start
;
96
/* +12 */
s16
dynamic_count
;
97
/* +14 */
float
left_bound
;
98
/* +18 */
float
bottom_bound
;
99
/* +1C */
float
right_bound
;
100
/* +20 */
float
top_bound
;
101
/* +24 */
s16
vtx_start
;
102
/* +26 */
s16
vtx_count
;
103
};
104
105
struct
CollJoint
{
106
/* 0x00 */
CollJoint
*
next
;
107
/* 0x04 */
MapJoint
*
inner
;
108
/* 0x08 */
u32
flags
;
109
/* 0x0C */
s16
xC
;
110
/* 0x0E */
u8
xE
: 1;
111
/* 0x10 */
Vec2
bounding_min
;
112
/* 0x18 */
Vec2
bounding_max
;
113
/* 0x20 */
HSD_JObj
*
x20
;
114
/* 0x24 */
mpLib_Callback
x24
;
115
/* 0x28 */
Ground
*
x28
;
116
/* 0x2C */
mpLib_Callback
x2C
;
117
/* 0x30 */
Ground
*
x30
;
118
};
/* size = 0x34 */
119
STATIC_ASSERT
(
sizeof
(
struct
CollJoint
) == 0x34);
120
121
struct
MapCollData
{
122
/* +0 */
Vec2*
verts
;
123
/* +4 */
int
vert_count
;
124
/* +8 */
MapLine
*
lines
;
125
/* +C */
int
line_count
;
126
/* +10 */
s16
floor_start
;
127
/* +12 */
s16
floor_count
;
128
/* +14 */
s16
ceiling_start
;
129
/* +16 */
s16
ceiling_count
;
130
/* +18 */
s16
right_wall_start
;
131
/* +1A */
s16
right_wall_count
;
132
/* +1C */
s16
left_wall_start
;
133
/* +1E */
s16
left_wall_count
;
134
/* +20 */
s16
dynamic_start
;
135
/* +22 */
s16
dynamic_count
;
136
/* +24 */
MapJoint
*
joints
;
137
/* +28 */
int
joint_count
;
138
/* +2C */
int
x2C
;
/* inferred */
139
};
140
141
#endif
u8
unsigned char u8
Definition
hsd_3B2B.h:2
forward.h
forward.h
mpLib_Callback
void(* mpLib_Callback)(Ground *, s32, CollData *, s32, mpLib_GroundEnum, f32)
Definition
forward.h:51
mp_Terrain
mp_Terrain
Definition
forward.h:22
placeholder.h
platform.h
STATIC_ASSERT
#define STATIC_ASSERT(cond)
Definition
platform.h:110
CollJoint
Definition
types.h:105
CollJoint::next
CollJoint * next
Definition
types.h:106
CollJoint::bounding_min
Vec2 bounding_min
Definition
types.h:111
CollJoint::xC
s16 xC
Definition
types.h:109
CollJoint::bounding_max
Vec2 bounding_max
Definition
types.h:112
CollJoint::x20
HSD_JObj * x20
Definition
types.h:113
CollJoint::x30
Ground * x30
Definition
types.h:117
CollJoint::xE
u8 xE
Definition
types.h:110
CollJoint::x28
Ground * x28
Definition
types.h:115
CollJoint::x24
mpLib_Callback x24
Definition
types.h:114
CollJoint::flags
u32 flags
Definition
types.h:108
CollJoint::inner
MapJoint * inner
Definition
types.h:107
CollJoint::x2C
mpLib_Callback x2C
Definition
types.h:116
CollLine
Definition
types.h:61
CollLine::flags
u32 flags
Definition
types.h:63
CollLine::x0
MapLine * x0
Definition
types.h:62
CollVtx
Definition
types.h:77
CollVtx::pos
Vec2 pos
Definition
types.h:80
CollVtx::x10
float x10
Definition
types.h:81
CollVtx::x0
f32 x0
Definition
types.h:78
CollVtx::x14
float x14
Definition
types.h:82
CollVtx::x4
f32 x4
Definition
types.h:79
Ground
Definition
types.h:955
HSD_JObj
Definition
jobj.h:107
MapCollData
Definition
types.h:121
MapCollData::vert_count
int vert_count
Definition
types.h:123
MapCollData::floor_start
s16 floor_start
Definition
types.h:126
MapCollData::right_wall_start
s16 right_wall_start
Definition
types.h:130
MapCollData::dynamic_start
s16 dynamic_start
Definition
types.h:134
MapCollData::line_count
int line_count
Definition
types.h:125
MapCollData::lines
MapLine * lines
Definition
types.h:124
MapCollData::dynamic_count
s16 dynamic_count
Definition
types.h:135
MapCollData::verts
Vec2 * verts
Definition
types.h:122
MapCollData::joint_count
int joint_count
Definition
types.h:137
MapCollData::ceiling_count
s16 ceiling_count
Definition
types.h:129
MapCollData::ceiling_start
s16 ceiling_start
Definition
types.h:128
MapCollData::joints
MapJoint * joints
Definition
types.h:136
MapCollData::right_wall_count
s16 right_wall_count
Definition
types.h:131
MapCollData::left_wall_start
s16 left_wall_start
Definition
types.h:132
MapCollData::x2C
int x2C
Definition
types.h:138
MapCollData::left_wall_count
s16 left_wall_count
Definition
types.h:133
MapCollData::floor_count
s16 floor_count
Definition
types.h:127
MapJoint
Definition
types.h:86
MapJoint::right_wall_start
s16 right_wall_start
Definition
types.h:91
MapJoint::left_wall_count
s16 left_wall_count
Definition
types.h:94
MapJoint::right_wall_count
s16 right_wall_count
Definition
types.h:92
MapJoint::bottom_bound
float bottom_bound
Definition
types.h:98
MapJoint::vtx_start
s16 vtx_start
Definition
types.h:101
MapJoint::left_bound
float left_bound
Definition
types.h:97
MapJoint::dynamic_start
s16 dynamic_start
Definition
types.h:95
MapJoint::floor_start
s16 floor_start
Definition
types.h:87
MapJoint::top_bound
float top_bound
Definition
types.h:100
MapJoint::right_bound
float right_bound
Definition
types.h:99
MapJoint::vtx_count
s16 vtx_count
Definition
types.h:102
MapJoint::dynamic_count
s16 dynamic_count
Definition
types.h:96
MapJoint::ceiling_count
s16 ceiling_count
Definition
types.h:90
MapJoint::floor_count
s16 floor_count
Definition
types.h:88
MapJoint::ceiling_start
s16 ceiling_start
Definition
types.h:89
MapJoint::left_wall_start
s16 left_wall_start
Definition
types.h:93
MapLine
Definition
types.h:50
MapLine::hi_flags
u16 hi_flags
Definition
types.h:57
MapLine::next_id1
s16 next_id1
Definition
types.h:56
MapLine::v0_idx
u16 v0_idx
Definition
types.h:51
MapLine::next_id0
s16 next_id0
Definition
types.h:54
MapLine::prev_id1
s16 prev_id1
Definition
types.h:55
MapLine::prev_id0
s16 prev_id0
Definition
types.h:53
MapLine::v1_idx
u16 v1_idx
Definition
types.h:52
MapLine::lo_flags
u16 lo_flags
Definition
types.h:58
mpIsland_80458E88_t
Definition
types.h:15
mpIsland_80458E88_t::x10
mp_UnkStruct0 * x10
Definition
types.h:20
mpIsland_80458E88_t::x4
mp_UnkStruct0 * x4
Definition
types.h:17
mpIsland_80458E88_t::x14
mp_UnkStruct0 * x14
Definition
types.h:21
mpIsland_80458E88_t::x20
mp_UnkStruct0 * x20
Definition
types.h:24
mpIsland_80458E88_t::xC
mp_UnkStruct0 * xC
Definition
types.h:19
mpIsland_80458E88_t::x18
mp_UnkStruct0 * x18
Definition
types.h:22
mpIsland_80458E88_t::x8
mp_UnkStruct0 * x8
Definition
types.h:18
mpIsland_80458E88_t::x1C
mp_UnkStruct0 * x1C
Definition
types.h:23
mpIsland_80458E88_t::next
mp_UnkStruct0 * next
Definition
types.h:16
mpIsland_PaletteEntry
Definition
types.h:27
mpIsland_PaletteEntry::kind
mp_Terrain kind
Definition
types.h:28
mpIsland_PaletteEntry::color
GXColor color
Definition
types.h:29
mpIsland_Palette
Definition
types.h:32
mpIsland_Palette::x0
mpIsland_PaletteEntry x0[20]
Definition
types.h:33
mp_UnkStruct0
Definition
types.h:36
mp_UnkStruct0::x8
Vec3 x8
Definition
types.h:40
mp_UnkStruct0::x2A
short x2A
Definition
types.h:46
mp_UnkStruct0::x28
short x28
Definition
types.h:45
mp_UnkStruct0::x14
Vec3 x14
Definition
types.h:41
mp_UnkStruct0::ptr
mp_UnkStruct3 * ptr
Definition
types.h:47
mp_UnkStruct0::x20
int x20
Definition
types.h:42
mp_UnkStruct0::next
mp_UnkStruct0 * next
Definition
types.h:37
mp_UnkStruct0::x6
u16 x6
Definition
types.h:39
mp_UnkStruct0::x24
short x24
Definition
types.h:43
mp_UnkStruct0::x26
short x26
Definition
types.h:44
mp_UnkStruct0::x4
u16 x4
Definition
types.h:38
mp_UnkStruct3
Definition
types.h:71
mp_UnkStruct3::x0
int x0
Definition
types.h:72
mp_UnkStruct3::xC
int xC
Definition
types.h:74
mp_UnkStruct3::x4
int x4
Definition
types.h:73
mpisland
Definition
types.h:66
mpisland::x0
int x0[8]
Definition
types.h:67
mpisland::x20
int x20[8]
Definition
types.h:68
src
melee
mp
types.h
Generated by
1.9.8