6 typedef struct ent_spawn ent_spawn
;
7 typedef struct ent_light ent_light
;
8 typedef struct ent_gate ent_gate
;
9 typedef struct ent_route_node ent_route_node
;
10 typedef struct ent_path_index ent_path_index
;
11 typedef struct ent_checkpoint ent_checkpoint
;
12 typedef struct ent_route ent_route
;
13 typedef struct ent_water ent_water
;
14 typedef struct ent_audio_clip ent_audio_clip
;
15 typedef struct volume_particles volume_particles
;
16 typedef struct volume_trigger volume_trigger
;
17 typedef struct ent_volume ent_volume
;
18 typedef struct ent_audio ent_audio
;
19 typedef struct ent_index ent_index
;
20 typedef struct ent_marker ent_marker
;
21 typedef struct ent_font ent_font
;
22 typedef struct ent_font_variant ent_font_variant
;
23 typedef struct ent_glyph ent_glyph
;
42 k_ent_function_trigger
,
43 k_ent_function_particle_spawn
47 mdl_transform transform
;
52 k_light_type_point
= 0,
57 mdl_transform transform
;
70 k_gate_type_unlinked
= 0,
71 k_gate_type_teleport
= 1,
72 k_gate_type_nonlocal_unlinked
= 2,
73 k_gate_type_nonlocel
= 3
86 m4x3f to_world
, transport
;
97 u16 routes
[4]; /* routes that pass through this gate */
101 struct ent_route_node
{
103 u8 ref_count
, ref_total
;
106 struct ent_path_index
{
110 struct ent_checkpoint
{
119 mdl_transform transform
;
120 u32 official_track_id
;
124 u16 checkpoints_start
,
130 u16 active_checkpoint
,
134 m4x3f board_transform
;
140 mdl_transform transform
;
142 u32 reserved0
, reserved1
;
145 struct ent_audio_clip
{
154 struct volume_particles
{
158 struct volume_trigger
{
163 k_volume_subtype_trigger
,
164 k_volume_subtype_particle
168 mdl_transform transform
;
169 m4x3f to_world
, to_local
;
175 volume_trigger trigger
;
176 volume_particles particles
;
181 mdl_transform transform
;
185 float volume
, crossfade
;
193 mdl_transform transform
;
197 VG_STATIC ent_marker
*ent_find_marker( mdl_context
*mdl
,
198 mdl_array_ptr
*arr
, const char *alias
)
200 for( u32 i
=0; i
<mdl_arrcount(arr
); i
++ ){
201 ent_marker
*marker
= mdl_arritm( arr
, i
);
203 if( !strcmp( mdl_pstr( mdl
, marker
->pstr_alias
), alias
) ){
211 enum channel_behaviour
{
212 k_channel_behaviour_unlimited
= 0,
213 k_channel_behaviour_discard_if_full
= 1,
214 k_channel_behaviour_crossfade_if_full
= 2
217 enum probability_curve
{
218 k_probability_curve_constant
= 0,
219 k_probability_curve_wildlife_day
= 1,
220 k_probability_curve_wildlife_night
= 2
232 struct ent_font_variant
{
243 #endif /* ENTITY_H */