102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
/* Recovered declarations; ABI and original layout preserved. */
2
#ifndef PCDOGS_GAME_TYPES_H
3
#define PCDOGS_GAME_TYPES_H
4
#include "
pcdogs/actor/types.h
"
5
#include "
pcdogs/input/types.h
"
6
#include "
pcdogs/math/types.h
"
7
#include "
pcdogs/types/common.h
"
8
#include "
pcdogs/audio/types.h
"
9
10
#pragma pack(push, 4)
11
12
struct
Game_Object
13
{
14
uint8_t
object_properties
[0x65];
15
uint8_t
state_flags_1
;
16
uint8_t
state_flags_2
;
17
uint8_t
object_type
;
18
uint8_t
script_context
[0x8];
19
int16_t
object_id
;
20
uint8_t
priority
;
21
char
repeat_count
;
22
uint8_t
trigger_type
;
23
uint16_t
condition_id
;
24
uint16_t
parameter
;
25
int16_t
duration
;
26
int16_t
timer
;
27
struct
Game_Object
*
next
;
28
};
29
30
#pragma pack(pop)
31
_Static_assert
(
sizeof
(
struct
Game_Object
) == 132,
"Game_Object size"
);
32
33
#pragma pack(push, 4)
34
35
struct
Game_OverDispatch
36
{
37
uint32_t
size
;
38
uint32_t
flags
;
39
uint32_t
final_score
;
40
uint32_t
reserved
[0xb];
41
};
42
43
#pragma pack(pop)
44
_Static_assert
(
sizeof
(
struct
Game_OverDispatch
) == 56,
"Game_OverDispatch size"
);
45
46
#pragma pack(push, 4)
47
48
struct
Replay_Frame
49
{
50
int32_t
frame_num
;
51
int32_t
input_state
;
52
53
struct
54
{
55
int32_t
x
;
56
int32_t
y
;
57
int32_t
z
;
58
}
pos
;
59
60
int32_t
angle
;
61
};
62
63
#pragma pack(pop)
64
_Static_assert
(
sizeof
(
struct
Replay_Frame
) == 24,
"Replay_Frame size"
);
65
66
#pragma pack(push, 4)
67
68
struct
Replay_Header32
69
{
70
uint32_t
random_seed
;
71
struct
Replay_InputRecord32
*
records
;
72
uint32_t
unknown_08
;
73
};
74
75
#pragma pack(pop)
76
_Static_assert
(
sizeof
(
struct
Replay_Header32
) == 12,
"Replay_Header32 size"
);
77
78
#pragma pack(push, 4)
79
80
struct
Replay_InputRecord32
81
{
82
int32_t
end_frame
;
83
uint32_t
button_bits
;
84
int16_t
axis_x
;
85
int16_t
axis_y
;
86
int16_t
aux_x
;
87
int16_t
aux_y
;
88
};
89
90
#pragma pack(pop)
91
_Static_assert
(
sizeof
(
struct
Replay_InputRecord32
) == 16,
"Replay_InputRecord32 size"
);
92
93
#pragma pack(push, 4)
94
95
struct
Player_HazardContactView
96
{
97
struct
Actor_State
*
actor
;
98
uint8_t
reserved_04
[0xc];
99
struct
Math_Vec3I32
impulse_direction
;
100
uint32_t
reserved_1c
;
101
uint32_t
frame
;
102
uint32_t
reserved_24
;
103
};
104
105
#pragma pack(pop)
106
_Static_assert
(
sizeof
(
struct
Player_HazardContactView
) == 40,
"Player_HazardContactView size"
);
107
108
#pragma pack(push, 1)
109
110
struct
Replay_InputEvent
111
{
112
uint32_t
frame
;
113
uint32_t
buttons
;
114
struct
Math_Vec2I16
axis
;
115
struct
Math_Vec2I16
aux
;
116
};
117
118
#pragma pack(pop)
119
_Static_assert
(
sizeof
(
struct
Replay_InputEvent
) == 16,
"Replay_InputEvent size"
);
120
121
#pragma pack(push, 4)
122
123
struct
Player_ControllerRecordView
124
{
125
struct
Input_State
input
;
126
uint8_t
input_source_index
;
127
char
jump_phase_ticks
;
128
uint8_t
jump_grace_ticks
;
129
uint8_t
reserved_0f
;
130
int32_t
cached_jump_velocity
;
131
int32_t
direction_mode_height_offset
;
132
struct
Math_Vec3I16
contact_normal_q12
;
133
uint16_t
reserved_1e
;
134
struct
Math_Vec3I32
relative_contact_velocity_q12
;
135
int16_t
pending_contact_priority_q12
;
136
uint16_t
reaction_animation_ticks
;
137
struct
Math_Vec3I32
*
position_ptr
;
138
int32_t
ground_jump_velocity
;
139
int32_t
param_C8
;
140
int32_t
param_CC
;
141
int32_t
movement_param_40
;
142
int32_t
movement_param_44
;
143
int32_t
param_accel_0
;
144
int32_t
movement_param_4c
;
145
int32_t
param_accel_1
;
146
int32_t
param_accel_2
;
147
int32_t
param_accel_3
;
148
int32_t
param_accel_4
;
149
int32_t
param_F0
;
150
int32_t
turn_step
;
151
int32_t
collision_weight
;
152
int32_t
param_FC
;
153
uint8_t
configured_jump_hold_ticks
;
154
uint8_t
configured_jump_startup_ticks
;
155
uint8_t
movement_mode
;
156
uint8_t
reserved_73
;
157
158
union
159
{
160
int32_t
health_or_energy
;
161
162
struct
163
{
164
uint16_t
collected_bones
;
165
uint16_t
health_or_energy_high
;
166
};
167
};
168
169
int32_t
param_108
;
170
int32_t
param_10C
;
171
int32_t
param_110
;
172
int32_t
param_114
;
173
int32_t
param_118
;
174
int32_t
param_11C
;
175
int32_t
param_120
;
176
int32_t
param_124
;
177
struct
Math_Vec3I32
queued_impulse_q12
;
178
179
union
180
{
181
struct
182
{
183
struct
Actor_State
*
collision_response_slots_0_to_4
[0x5];
184
struct
Actor_State
*
pending_ground_actor
;
185
struct
Scene_Node
*
camera_override_node
;
186
};
187
188
uint32_t
collision_response_slot_bits
[7];
189
};
190
191
struct
Actor_State
*
nearest_class4_actor
;
192
uint32_t
hazard_end_frame
;
193
194
union
195
{
196
struct
Player_HazardContactView
hazard_contacts
[0x4];
197
struct
Audio_CollisionSoundCooldownEntry
collision_sound_cooldowns
[0x4];
198
};
199
200
uint32_t
state_flags
;
201
int16_t
owner_entity_index
;
202
uint8_t
forced_animation_ticks
;
203
char
attachment_ticks
;
204
uint16_t
input_lock_ticks
;
205
uint16_t
lives_remaining
;
206
uint8_t
reserved_174
[0x20];
207
uint16_t
death_stage
;
208
uint16_t
death_ticks
;
209
struct
Component_CollisionRecord
*
component_records
;
210
211
union
212
{
213
struct
214
{
215
struct
Actor_State
*
attached_actors
[2];
216
struct
Actor_ContactSlot
contact_slots
[4];
217
};
218
struct
Actor_ContactSlot
contacts_by_collision_class
[5];
219
};
220
};
221
222
#pragma pack(pop)
223
_Static_assert
(
sizeof
(
struct
Player_ControllerRecordView
) == 452,
"Player_ControllerRecordView size"
);
224
_Static_assert
(offsetof(
struct
Player_ControllerRecordView
,
collision_sound_cooldowns
) == 0xc8,
"Player_ControllerRecordView collision sound cooldowns offset"
);
225
_Static_assert
(offsetof(
struct
Player_ControllerRecordView
,
collected_bones
) == 0x74,
"Player_ControllerRecordView collected_bones offset"
);
226
_Static_assert
(
sizeof
(((
struct
Player_ControllerRecordView
*)0)->collected_bones) == 2,
"Player_ControllerRecordView collected_bones width"
);
227
228
#endif
/* PCDOGS_GAME_TYPES_H */
types.h
types.h
common.h
types.h
types.h
Actor_ContactSlot
Definition
types.h:71
Actor_State
Definition
types.h:376
Audio_CollisionSoundCooldownEntry
Definition
types.h:154
Component_CollisionRecord
Definition
types.h:42
Game_Object
Definition
types.h:13
Game_Object::next
struct Game_Object * next
Definition
types.h:27
Game_Object::object_type
uint8_t object_type
Definition
types.h:17
Game_Object::parameter
uint16_t parameter
Definition
types.h:24
Game_Object::trigger_type
uint8_t trigger_type
Definition
types.h:22
Game_Object::repeat_count
char repeat_count
Definition
types.h:21
Game_Object::object_id
int16_t object_id
Definition
types.h:19
Game_Object::object_properties
uint8_t object_properties[0x65]
Definition
types.h:14
Game_Object::timer
int16_t timer
Definition
types.h:26
Game_Object::state_flags_2
uint8_t state_flags_2
Definition
types.h:16
Game_Object::script_context
uint8_t script_context[0x8]
Definition
types.h:18
Game_Object::state_flags_1
uint8_t state_flags_1
Definition
types.h:15
Game_Object::duration
int16_t duration
Definition
types.h:25
Game_Object::priority
uint8_t priority
Definition
types.h:20
Game_Object::condition_id
uint16_t condition_id
Definition
types.h:23
Game_OverDispatch
Definition
types.h:36
Game_OverDispatch::final_score
uint32_t final_score
Definition
types.h:39
Game_OverDispatch::reserved
uint32_t reserved[0xb]
Definition
types.h:40
Game_OverDispatch::size
uint32_t size
Definition
types.h:37
Game_OverDispatch::flags
uint32_t flags
Definition
types.h:38
Input_State
Definition
types.h:82
Math_Vec2I16
Definition
types.h:401
Math_Vec3I16
Definition
types.h:457
Math_Vec3I32
Definition
types.h:469
Player_ControllerRecordView
Definition
types.h:124
Player_ControllerRecordView::movement_param_4c
int32_t movement_param_4c
Definition
types.h:144
Player_ControllerRecordView::hazard_contacts
struct Player_HazardContactView hazard_contacts[0x4]
Definition
types.h:196
Player_ControllerRecordView::param_FC
int32_t param_FC
Definition
types.h:152
Player_ControllerRecordView::param_118
int32_t param_118
Definition
types.h:173
Player_ControllerRecordView::param_accel_1
int32_t param_accel_1
Definition
types.h:145
Player_ControllerRecordView::contact_normal_q12
struct Math_Vec3I16 contact_normal_q12
Definition
types.h:132
Player_ControllerRecordView::param_114
int32_t param_114
Definition
types.h:172
Player_ControllerRecordView::input
struct Input_State input
Definition
types.h:125
Player_ControllerRecordView::movement_param_44
int32_t movement_param_44
Definition
types.h:142
Player_ControllerRecordView::param_C8
int32_t param_C8
Definition
types.h:139
Player_ControllerRecordView::contact_slots
struct Actor_ContactSlot contact_slots[4]
Definition
types.h:216
Player_ControllerRecordView::param_108
int32_t param_108
Definition
types.h:169
Player_ControllerRecordView::contacts_by_collision_class
struct Actor_ContactSlot contacts_by_collision_class[5]
Definition
types.h:218
Player_ControllerRecordView::configured_jump_hold_ticks
uint8_t configured_jump_hold_ticks
Definition
types.h:153
Player_ControllerRecordView::param_11C
int32_t param_11C
Definition
types.h:174
Player_ControllerRecordView::movement_param_40
int32_t movement_param_40
Definition
types.h:141
Player_ControllerRecordView::ground_jump_velocity
int32_t ground_jump_velocity
Definition
types.h:138
Player_ControllerRecordView::nearest_class4_actor
struct Actor_State * nearest_class4_actor
Definition
types.h:191
Player_ControllerRecordView::collision_response_slot_bits
uint32_t collision_response_slot_bits[7]
Definition
types.h:188
Player_ControllerRecordView::cached_jump_velocity
int32_t cached_jump_velocity
Definition
types.h:130
Player_ControllerRecordView::position_ptr
struct Math_Vec3I32 * position_ptr
Definition
types.h:137
Player_ControllerRecordView::reserved_0f
uint8_t reserved_0f
Definition
types.h:129
Player_ControllerRecordView::forced_animation_ticks
uint8_t forced_animation_ticks
Definition
types.h:202
Player_ControllerRecordView::direction_mode_height_offset
int32_t direction_mode_height_offset
Definition
types.h:131
Player_ControllerRecordView::hazard_end_frame
uint32_t hazard_end_frame
Definition
types.h:192
Player_ControllerRecordView::pending_contact_priority_q12
int16_t pending_contact_priority_q12
Definition
types.h:135
Player_ControllerRecordView::collision_sound_cooldowns
struct Audio_CollisionSoundCooldownEntry collision_sound_cooldowns[0x4]
Definition
types.h:197
Player_ControllerRecordView::turn_step
int32_t turn_step
Definition
types.h:150
Player_ControllerRecordView::reaction_animation_ticks
uint16_t reaction_animation_ticks
Definition
types.h:136
Player_ControllerRecordView::jump_grace_ticks
uint8_t jump_grace_ticks
Definition
types.h:128
Player_ControllerRecordView::reserved_73
uint8_t reserved_73
Definition
types.h:156
Player_ControllerRecordView::component_records
struct Component_CollisionRecord * component_records
Definition
types.h:209
Player_ControllerRecordView::param_CC
int32_t param_CC
Definition
types.h:140
Player_ControllerRecordView::pending_ground_actor
struct Actor_State * pending_ground_actor
Definition
types.h:184
Player_ControllerRecordView::param_124
int32_t param_124
Definition
types.h:176
Player_ControllerRecordView::state_flags
uint32_t state_flags
Definition
types.h:200
Player_ControllerRecordView::health_or_energy
int32_t health_or_energy
Definition
types.h:160
Player_ControllerRecordView::param_110
int32_t param_110
Definition
types.h:171
Player_ControllerRecordView::jump_phase_ticks
char jump_phase_ticks
Definition
types.h:127
Player_ControllerRecordView::owner_entity_index
int16_t owner_entity_index
Definition
types.h:201
Player_ControllerRecordView::collected_bones
uint16_t collected_bones
Definition
types.h:164
Player_ControllerRecordView::death_ticks
uint16_t death_ticks
Definition
types.h:208
Player_ControllerRecordView::configured_jump_startup_ticks
uint8_t configured_jump_startup_ticks
Definition
types.h:154
Player_ControllerRecordView::reserved_1e
uint16_t reserved_1e
Definition
types.h:133
Player_ControllerRecordView::param_F0
int32_t param_F0
Definition
types.h:149
Player_ControllerRecordView::collision_weight
int32_t collision_weight
Definition
types.h:151
Player_ControllerRecordView::param_10C
int32_t param_10C
Definition
types.h:170
Player_ControllerRecordView::reserved_174
uint8_t reserved_174[0x20]
Definition
types.h:206
Player_ControllerRecordView::input_lock_ticks
uint16_t input_lock_ticks
Definition
types.h:204
Player_ControllerRecordView::health_or_energy_high
uint16_t health_or_energy_high
Definition
types.h:165
Player_ControllerRecordView::relative_contact_velocity_q12
struct Math_Vec3I32 relative_contact_velocity_q12
Definition
types.h:134
Player_ControllerRecordView::movement_mode
uint8_t movement_mode
Definition
types.h:155
Player_ControllerRecordView::param_accel_3
int32_t param_accel_3
Definition
types.h:147
Player_ControllerRecordView::attached_actors
struct Actor_State * attached_actors[2]
Definition
types.h:215
Player_ControllerRecordView::death_stage
uint16_t death_stage
Definition
types.h:207
Player_ControllerRecordView::param_accel_2
int32_t param_accel_2
Definition
types.h:146
Player_ControllerRecordView::input_source_index
uint8_t input_source_index
Definition
types.h:126
Player_ControllerRecordView::param_accel_4
int32_t param_accel_4
Definition
types.h:148
Player_ControllerRecordView::camera_override_node
struct Scene_Node * camera_override_node
Definition
types.h:185
Player_ControllerRecordView::queued_impulse_q12
struct Math_Vec3I32 queued_impulse_q12
Definition
types.h:177
Player_ControllerRecordView::lives_remaining
uint16_t lives_remaining
Definition
types.h:205
Player_ControllerRecordView::param_accel_0
int32_t param_accel_0
Definition
types.h:143
Player_ControllerRecordView::param_120
int32_t param_120
Definition
types.h:175
Player_ControllerRecordView::attachment_ticks
char attachment_ticks
Definition
types.h:203
Player_ControllerRecordView::collision_response_slots_0_to_4
struct Actor_State * collision_response_slots_0_to_4[0x5]
Definition
types.h:183
Player_HazardContactView
Definition
types.h:96
Player_HazardContactView::frame
uint32_t frame
Definition
types.h:101
Player_HazardContactView::reserved_04
uint8_t reserved_04[0xc]
Definition
types.h:98
Player_HazardContactView::reserved_1c
uint32_t reserved_1c
Definition
types.h:100
Player_HazardContactView::actor
struct Actor_State * actor
Definition
types.h:97
Player_HazardContactView::reserved_24
uint32_t reserved_24
Definition
types.h:102
Player_HazardContactView::impulse_direction
struct Math_Vec3I32 impulse_direction
Definition
types.h:99
Replay_Frame
Definition
types.h:49
Replay_Frame::z
int32_t z
Definition
types.h:57
Replay_Frame::frame_num
int32_t frame_num
Definition
types.h:50
Replay_Frame::angle
int32_t angle
Definition
types.h:60
Replay_Frame::input_state
int32_t input_state
Definition
types.h:51
Replay_Frame::pos
struct Replay_Frame::@126047017172223347201377103125137225015051253210 pos
Replay_Frame::y
int32_t y
Definition
types.h:56
Replay_Frame::x
int32_t x
Definition
types.h:55
Replay_Header32
Definition
types.h:69
Replay_Header32::unknown_08
uint32_t unknown_08
Definition
types.h:72
Replay_Header32::records
struct Replay_InputRecord32 * records
Definition
types.h:71
Replay_Header32::random_seed
uint32_t random_seed
Definition
types.h:70
Replay_InputEvent
Definition
types.h:111
Replay_InputEvent::axis
struct Math_Vec2I16 axis
Definition
types.h:114
Replay_InputEvent::buttons
uint32_t buttons
Definition
types.h:113
Replay_InputEvent::frame
uint32_t frame
Definition
types.h:112
Replay_InputEvent::aux
struct Math_Vec2I16 aux
Definition
types.h:115
Replay_InputRecord32
Definition
types.h:81
Replay_InputRecord32::axis_y
int16_t axis_y
Definition
types.h:85
Replay_InputRecord32::aux_y
int16_t aux_y
Definition
types.h:87
Replay_InputRecord32::end_frame
int32_t end_frame
Definition
types.h:82
Replay_InputRecord32::axis_x
int16_t axis_x
Definition
types.h:84
Replay_InputRecord32::aux_x
int16_t aux_x
Definition
types.h:86
Replay_InputRecord32::button_bits
uint32_t button_bits
Definition
types.h:83
Scene_Node
Definition
types.h:111
include
pcdogs
game
types.h
Generated by
1.17.0