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_NAVIGATION_TYPES_H
3
#define PCDOGS_NAVIGATION_TYPES_H
4
#include "
pcdogs/math/types.h
"
5
#include "
pcdogs/types/common.h
"
6
7
#pragma pack(push, 2)
8
9
struct
Nav_NeighborEntry
10
{
11
union
12
{
13
uint16_t
packed_id
;
14
15
struct
16
{
17
uint8_t
flags_and_node_low
;
18
uint8_t
node_high
;
19
};
20
};
21
22
int16_t
cost
;
23
};
24
25
#pragma pack(pop)
26
_Static_assert
(
sizeof
(
struct
Nav_NeighborEntry
) == 4,
"Nav_NeighborEntry size"
);
27
_Static_assert
(offsetof(
struct
Nav_NeighborEntry
,
flags_and_node_low
) == 0,
"Neighbor flags byte offset"
);
28
_Static_assert
(
sizeof
(((
struct
Nav_NeighborEntry
*)0)->flags_and_node_low) == 1,
"Neighbor flags byte width"
);
29
30
#pragma pack(push, 4)
31
32
struct
Nav_Network
33
{
34
int32_t
node_count
;
35
struct
Nav_Node
*
nodes
;
36
};
37
38
#pragma pack(pop)
39
_Static_assert
(
sizeof
(
struct
Nav_Network
) == 8,
"Nav_Network size"
);
40
41
#pragma pack(push, 4)
42
43
struct
Nav_OpenSetEntry
44
{
45
uint32_t
cost
;
46
int16_t
node_id
;
47
int16_t
path_depth
;
48
};
49
50
#pragma pack(pop)
51
_Static_assert
(
sizeof
(
struct
Nav_OpenSetEntry
) == 8,
"Nav_OpenSetEntry size"
);
52
53
#pragma pack(push, 4)
54
55
struct
Nav_PathState
56
{
57
uint32_t
g_cost
;
58
uint16_t
node_id
;
59
uint16_t
parent_backlink
;
60
int16_t
step_count
;
61
int16_t
reserved
;
62
};
63
64
#pragma pack(pop)
65
_Static_assert
(
sizeof
(
struct
Nav_PathState
) == 12,
"Nav_PathState size"
);
66
67
#pragma pack(push, 4)
68
69
struct
Nav_Command
70
{
71
uint32_t
command_type
;
72
int16_t
target_selector_a
;
73
int16_t
target_selector_b
;
74
int32_t
speed
;
75
struct
Math_Vec3I32
pos
;
76
};
77
78
#pragma pack(pop)
79
_Static_assert
(
sizeof
(
struct
Nav_Command
) == 24,
"Nav_Command size"
);
80
81
#pragma pack(push, 4)
82
83
struct
Nav_GroundProbeActorView
84
{
85
uint8_t
reserved_000
[0x40];
86
struct
Math_Vec3I32
position
;
87
uint8_t
reserved_04c
[0x3c];
88
uint32_t
behavior_flags
;
89
uint8_t
reserved_08c
[0x3a];
90
uint8_t
collision_class
;
91
uint8_t
reserved_0c7
[0x21];
92
struct
Collision_Node
*
ground_collision_node
;
93
struct
Collision_Polygon
*
ground_contact_polygon
;
94
};
95
96
#pragma pack(pop)
97
_Static_assert
(
sizeof
(
struct
Nav_GroundProbeActorView
) == 240,
"Nav_GroundProbeActorView size"
);
98
99
#pragma pack(push, 4)
100
101
struct
Nav_Node
102
{
103
struct
Math_Vec3I32
pos
;
104
uint16_t
parent_link
;
105
int16_t
neighbor_count
;
106
struct
Nav_OpenSetEntry
*
pathfind_state
;
107
struct
Nav_NeighborEntry
*
neighbor_list
;
108
};
109
110
#pragma pack(pop)
111
_Static_assert
(
sizeof
(
struct
Nav_Node
) == 24,
"Nav_Node size"
);
112
113
#endif
/* PCDOGS_NAVIGATION_TYPES_H */
common.h
types.h
Collision_Node
Definition
types.h:273
Collision_Polygon
Definition
types.h:59
Math_Vec3I32
Definition
types.h:469
Nav_Command
Definition
types.h:70
Nav_Command::target_selector_b
int16_t target_selector_b
Definition
types.h:73
Nav_Command::target_selector_a
int16_t target_selector_a
Definition
types.h:72
Nav_Command::pos
struct Math_Vec3I32 pos
Definition
types.h:75
Nav_Command::command_type
uint32_t command_type
Definition
types.h:71
Nav_Command::speed
int32_t speed
Definition
types.h:74
Nav_GroundProbeActorView
Definition
types.h:84
Nav_GroundProbeActorView::behavior_flags
uint32_t behavior_flags
Definition
types.h:88
Nav_GroundProbeActorView::ground_contact_polygon
struct Collision_Polygon * ground_contact_polygon
Definition
types.h:93
Nav_GroundProbeActorView::reserved_04c
uint8_t reserved_04c[0x3c]
Definition
types.h:87
Nav_GroundProbeActorView::reserved_08c
uint8_t reserved_08c[0x3a]
Definition
types.h:89
Nav_GroundProbeActorView::reserved_000
uint8_t reserved_000[0x40]
Definition
types.h:85
Nav_GroundProbeActorView::ground_collision_node
struct Collision_Node * ground_collision_node
Definition
types.h:92
Nav_GroundProbeActorView::position
struct Math_Vec3I32 position
Definition
types.h:86
Nav_GroundProbeActorView::reserved_0c7
uint8_t reserved_0c7[0x21]
Definition
types.h:91
Nav_GroundProbeActorView::collision_class
uint8_t collision_class
Definition
types.h:90
Nav_NeighborEntry
Definition
types.h:10
Nav_NeighborEntry::cost
int16_t cost
Definition
types.h:22
Nav_NeighborEntry::flags_and_node_low
uint8_t flags_and_node_low
Definition
types.h:17
Nav_NeighborEntry::packed_id
uint16_t packed_id
Definition
types.h:13
Nav_NeighborEntry::node_high
uint8_t node_high
Definition
types.h:18
Nav_Network
Definition
types.h:33
Nav_Network::nodes
struct Nav_Node * nodes
Definition
types.h:35
Nav_Network::node_count
int32_t node_count
Definition
types.h:34
Nav_Node
Definition
types.h:102
Nav_Node::pos
struct Math_Vec3I32 pos
Definition
types.h:103
Nav_Node::parent_link
uint16_t parent_link
Definition
types.h:104
Nav_Node::neighbor_list
struct Nav_NeighborEntry * neighbor_list
Definition
types.h:107
Nav_Node::pathfind_state
struct Nav_OpenSetEntry * pathfind_state
Definition
types.h:106
Nav_Node::neighbor_count
int16_t neighbor_count
Definition
types.h:105
Nav_OpenSetEntry
Definition
types.h:44
Nav_OpenSetEntry::path_depth
int16_t path_depth
Definition
types.h:47
Nav_OpenSetEntry::node_id
int16_t node_id
Definition
types.h:46
Nav_OpenSetEntry::cost
uint32_t cost
Definition
types.h:45
Nav_PathState
Definition
types.h:56
Nav_PathState::step_count
int16_t step_count
Definition
types.h:60
Nav_PathState::node_id
uint16_t node_id
Definition
types.h:58
Nav_PathState::reserved
int16_t reserved
Definition
types.h:61
Nav_PathState::g_cost
uint32_t g_cost
Definition
types.h:57
Nav_PathState::parent_backlink
uint16_t parent_backlink
Definition
types.h:59
include
pcdogs
navigation
types.h
Generated by
1.17.0