2 * =============================================================================
4 * Copyright . . . -----, ,----- ,---. .---.
5 * 2021-2024 |\ /| | / | | | | /|
6 * | \ / | +-- / +----- +---' | / |
7 * | \ / | | / | | \ | / |
8 * | \/ | | / | | \ | / |
9 * ' ' '--' [] '----- '----- ' ' '---' SOFTWARE
11 * =============================================================================
14 #define SR_ALLOW_REWIND_HUB
22 * --------------------- */
24 #include "skaterift.h"
27 #include "vg/vg_opt.h"
28 #include "vg/vg_loader.h"
40 #include "player_remote.h"
44 #include "ent_tornado.h"
45 #include "ent_miniworld.h"
46 #include "ent_skateshop.h"
48 #include "world_map.h"
52 #include "player_render.h"
53 #include "control_overlay.h"
55 struct skaterift_globals skaterift
=
57 .op
= k_async_op_clientloading
, .time_rate
= 1.0f
, .demo_mode
= 1,
58 .hub_world
= "maps/dev_hub",
61 static int k_tools_mode
= 0;
63 int main( int argc
, char *argv
[] )
65 network_set_host( "skaterift.com", NULL
);
66 vg_mem
.use_libc_malloc
= 0;
67 vg_set_mem_quota( 160*1024*1024 );
68 vg_enter( argc
, argv
, "Voyager Game Engine" );
72 void vg_launch_opt(void)
75 if( vg_long_opt( "noauth" ) ){
76 network_client
.auth_mode
= eServerModeNoAuthentication
;
79 if( (arg
= vg_long_opt_arg( "server" )) )
81 network_set_host( arg
, NULL
);
84 if( vg_long_opt( "tools" ) ){
88 if( vg_long_opt( "demo" ) ){
89 skaterift
.demo_mode
= 1;
92 if( (arg
= vg_long_opt_arg( "world" )) ){
93 skaterift
.hub_world
= arg
;
99 vg_info(" Copyright . . . -----, ,----- ,---. .---. \n" );
100 vg_info(" 2021-2023 |\\ /| | / | | | | /| \n" );
101 vg_info(" | \\ / | +-- / +----- +---' | / | \n" );
102 vg_info(" | \\ / | | / | | \\ | / | \n" );
103 vg_info(" | \\/ | | / | | \\ | / | \n" );
104 vg_info(" ' ' '--' [] '----- '----- ' ' '---' "
107 /* please forgive me! */
109 if( (drm
= vg_file_read_text( vg_mem
.scratch
, "DRM", &sz
)) )
110 if( !strcmp(drm
, "blibby!") )
111 skaterift
.demo_mode
= 0;
113 vg_loader_step( remote_players_init
, NULL
);
119 vg_loader_step( NULL
, steam_end
);
120 vg_loader_step( network_init
, network_end
);
123 static void async_skaterift_player_start( void *payload
, u32 size
){
124 world_switch_instance(0);
127 static void async_call_ready( void *payload
, u32 size
)
129 skaterift
.op
= k_async_op_none
;
131 if( network_client
.auto_connect
)
132 network_client
.user_intent
= k_server_intent_online
;
137 static void skaterift_restore_state(void)
140 skaterift_read_main_savedata( &sav
);
143 vg_msg_init( &kvsav
, sav
.buf
, sizeof(sav
.buf
) );
146 vg_msg_getkvintg( &kvsav
, "ach", k_vg_msg_u32
, &ach
, NULL
);
147 skaterift
.achievements
|= ach
;
149 u32 board_reg_id
= time(NULL
) % addon_count( k_addon_type_board
, 0 ),
150 player_reg_id
= (time(NULL
)+44) % addon_count( k_addon_type_player
, 0 );
152 vg_msg_cursor orig
= kvsav
.cur
;
153 if( vg_msg_seekframe( &kvsav
, "player" ) ){
157 skaterift_read_addon_alias( &kvsav
, "board", k_addon_type_board
, &q
);
158 u32 reg_id
= addon_match( &q
);
159 if( reg_id
!= 0xffffffff )
160 board_reg_id
= reg_id
;
163 skaterift_read_addon_alias( &kvsav
, "playermodel",
164 k_addon_type_player
, &q
);
165 reg_id
= addon_match( &q
);
166 if( reg_id
!= 0xffffffff )
167 player_reg_id
= reg_id
;
170 localplayer
.board_view_slot
=
171 addon_cache_create_viewer( k_addon_type_board
, board_reg_id
);
172 localplayer
.playermodel_view_slot
=
173 addon_cache_create_viewer( k_addon_type_player
, player_reg_id
);
178 static addon_reg
*skaterift_mount_world_unloadable( const char *path
, u32 ext
){
179 addon_reg
*reg
= addon_mount_local_addon( path
, k_addon_type_world
, ".mdl" );
180 if( !reg
) vg_fatal_error( "world not found\n" );
181 reg
->flags
|= (ADDON_REG_HIDDEN
| ext
);
185 static void skaterift_load_world_content(void){
187 addon_reg
*hub
= skaterift_mount_world_unloadable( skaterift
.hub_world
, 0 );
188 skaterift_mount_world_unloadable( "maps/mp_spawn",
189 ADDON_REG_CITY
|ADDON_REG_PREMIUM
);
190 skaterift_mount_world_unloadable( "maps/mp_mtzero",
191 ADDON_REG_MTZERO
|ADDON_REG_PREMIUM
);
192 skaterift_mount_world_unloadable( "maps/dev_tutorial", 0 );
193 skaterift_mount_world_unloadable( "maps/dev_flatworld", 0 );
194 skaterift_mount_world_unloadable( "maps/mp_line1", ADDON_REG_PREMIUM
);
196 world_static
.load_state
= k_world_loader_load
;
198 struct world_load_args args
= {
199 .purpose
= k_world_purpose_hub
,
202 skaterift_world_load_thread( &args
);
205 static void skaterift_load_player_content(void)
207 particle_alloc( &particles_grind
, 300 );
208 particle_alloc( &particles_env
, 200 );
210 player_load_animation_reference( "models/ch_none.mdl" );
211 player_model_load( &localplayer
.fallback_model
, "models/ch_none.mdl" );
213 player_board_load( &localplayer
.fallback_board
, "models/board_none.mdl" );
219 vg_async_call( async_call_ready
, NULL
, 0 );
223 vg_audio
.always_keep_compressed
= 1;
225 vg_console_reg_cmd( "load_world", skaterift_load_world_command
, NULL
);
226 vg_console_reg_var( "immobile", &localplayer
.immobile
, k_var_dtype_i32
, 0 );
228 vg_loader_step( render_init
, NULL
);
229 vg_loader_step( menu_init
, NULL
);
230 vg_loader_step( control_overlay_init
, NULL
);
231 vg_loader_step( world_init
, NULL
);
232 vg_loader_step( vehicle_init
, NULL
);
233 vg_loader_step( gui_init
, NULL
);
235 vg_loader_step( player_init
, NULL
);
236 vg_loader_step( player_ragdoll_init
, NULL
);
237 vg_loader_step( npc_init
, NULL
);
240 vg_loader_step( addon_system_init
, NULL
);
241 vg_loader_step( workshop_init
, NULL
);
242 vg_loader_step( skateshop_init
, NULL
);
243 vg_loader_step( ent_tornado_init
, NULL
);
244 vg_loader_step( skaterift_replay_init
, NULL
);
245 vg_loader_step( skaterift_load_player_content
, NULL
);
247 /* --------------------- */
250 vg_loader_step( audio_init
, NULL
);
252 /* 'systems' are completely loaded now */
254 /* Completing addon registrations
255 * -------------------------------------
258 /* load home/permanent world manually */
259 vg_loader_step( skaterift_load_world_content
, NULL
);
260 vg_async_call( async_skaterift_player_start
, NULL
, 0 );
263 vg_console_load_autos();
266 addon_mount_content_folder( k_addon_type_player
,
267 "playermodels", ".mdl" );
268 addon_mount_content_folder( k_addon_type_board
, "boards", ".mdl" );
269 addon_mount_content_folder( k_addon_type_world
, "maps", ".mdl" );
270 addon_mount_workshop_items();
271 vg_async_call( async_addon_reg_update
, NULL
, 0 );
275 skaterift_restore_state();
278 vg_loader_step( NULL
, skaterift_autosave_synchronous
);
280 //board_processview_thread(NULL);
281 vg_async_call( async_call_ready
, NULL
, 0 );
284 static void draw_origin_axis(void){
285 vg_line( (v3f
){ 0.0f
, 0.0f
, 0.0f
}, (v3f
){ 1.0f
, 0.0f
, 0.0f
}, 0xffff0000 );
286 vg_line( (v3f
){ 0.0f
, 0.0f
, 0.0f
}, (v3f
){ 0.0f
, 1.0f
, 0.0f
}, 0xff00ff00 );
287 vg_line( (v3f
){ 0.0f
, 0.0f
, 0.0f
}, (v3f
){ 0.0f
, 0.0f
, 1.0f
}, 0xff0000ff );
289 void skaterift_change_client_world_preupdate(void);
293 * ---------------------------------------------------------------------------*/
295 void vg_pre_update(void)
297 skaterift_preupdate_inputs();
299 if( k_tools_mode
) return;
302 skaterift_change_client_world_preupdate();
304 if( skaterift
.op
== k_async_op_clientloading
) return;
307 addon_system_pre_update();
308 skateshop_world_preview_preupdate();
313 if( skaterift
.activity
& (k_skaterift_replay
|k_skaterift_menu
|
314 k_skaterift_world_map
) )
319 vg_slewf( &skaterift
.time_rate
, target
, vg
.time_frame_delta
* (1.0f
/0.3f
) );
320 vg
.time_rate
= vg_smoothstepf( skaterift
.time_rate
);
322 /* TODO: how can we compress this? */
323 ent_miniworld_preupdate();
324 world_entity_focus_preupdate();
326 if( skaterift
.activity
!= k_skaterift_menu
)
328 player__pre_update();
331 skaterift_replay_pre_update();
332 remote_sfx_pre_update();
333 skateshop_world_preupdate( world_current_instance() );
335 world_update( world_current_instance(), localplayer
.rb
.co
);
336 audio_ambient_sprites_update( world_current_instance(), localplayer
.rb
.co
);
337 world_map_pre_update();
340 void vg_fixed_update(void)
342 if( k_tools_mode
) return;
343 if( skaterift
.op
== k_async_op_clientloading
) return;
345 world_routes_fixedupdate( world_current_instance() );
347 vehicle_update_fixed();
350 void vg_post_update(void)
352 if( k_tools_mode
) return;
353 if( skaterift
.op
== k_async_op_clientloading
) return;
355 player__post_update();
359 world_audio_sample_distances( localplayer
.rb
.co
, &sample_index
, &dist
);
362 vg_dsp
.echo_distances
[sample_index
] = dist
;
364 v3f ears
= { 1.0f
,0.0f
,0.0f
};
365 m3x3_mulv( skaterift
.cam
.transform
, ears
, ears
);
366 v3_copy( ears
, vg_audio
.external_listener_ears
);
367 v3_copy( skaterift
.cam
.transform
[3], vg_audio
.external_listener_pos
);
369 if( localplayer
.gate_waiting
){
370 m4x3_mulv( localplayer
.gate_waiting
->transport
,
371 vg_audio
.external_listener_pos
,
372 vg_audio
.external_listener_pos
);
375 v3_copy( localplayer
.rb
.v
, vg_audio
.external_lister_velocity
);
378 vehicle_update_post();
379 skaterift_autosave_update();
384 * ---------------------------------------------------------------------------*/
386 void vg_framebuffer_resize( int w
, int h
){
390 static void present_view_with_post_processing(void){
391 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
392 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
395 glDisable(GL_DEPTH_TEST
);
396 glBlendFunc(GL_ONE_MINUS_DST_ALPHA
, GL_DST_ALPHA
);
397 glBlendEquation(GL_FUNC_ADD
);
400 render_fb_inverse_ratio( gpipeline
.fb_main
, inverse
);
403 shader_blitblur_use();
404 shader_blitblur_uTexMain( 0 );
405 shader_blitblur_uTexMotion( 1 );
406 shader_blitblur_uBlurStrength( k_blur_strength
/
407 (vg
.time_frame_delta
*60.0) );
408 shader_blitblur_uInverseRatio( inverse
);
410 inverse
[0] -= 0.0001f
;
411 inverse
[1] -= 0.0001f
;
412 shader_blitblur_uClampUv( inverse
);
414 static f64 effect_time
= 133.0;
415 effect_time
+= vg
.time_frame_delta
;
416 shader_blitblur_uTime( effect_time
);
418 f32 glitch_strength
= 0.0f
;
419 if( skaterift
.activity
== k_skaterift_replay
){
420 glitch_strength
= 0.005f
;
421 if( player_replay
.replay_control
== k_replay_control_play
)
422 glitch_strength
= 0.005f
;
424 glitch_strength
+= 0.005f
*player_replay
.track_velocity
;
426 shader_blitblur_uGlitchStrength( glitch_strength
);
429 if( skaterift
.activity
== k_skaterift_menu
)
430 v2_muls( (v2f
){ 0.04f
, 0.001f
}, 1.0f
-skaterift
.time_rate
, override
);
433 shader_blitblur_uOverrideDir( override
);
435 render_fb_bind_texture( gpipeline
.fb_main
, 0, 0 );
436 render_fb_bind_texture( gpipeline
.fb_main
, 1, 1 );
440 shader_blit_uTexMain( 0 );
441 shader_blit_uInverseRatio( inverse
);
442 render_fb_bind_texture( gpipeline
.fb_main
, 0, 0 );
448 static void render_player_transparent(void){
449 static vg_camera small_cam
; /* DOES NOT NEED TO BE STATIC BUT MINGW
452 m4x3_copy( skaterift
.cam
.transform
, small_cam
.transform
);
454 small_cam
.fov
= skaterift
.cam
.fov
;
455 small_cam
.nearz
= 0.05f
;
456 small_cam
.farz
= 60.0f
;
458 vg_camera_update_view( &small_cam
);
459 vg_camera_update_projection( &small_cam
);
460 vg_camera_finalize( &small_cam
);
462 /* Draw player to window buffer and blend background ontop */
463 player__render( &small_cam
);
466 static world_instance
*get_view_world(void){
467 world_instance
*view_world
= world_current_instance();
468 if( localplayer
.gate_waiting
&&
469 (localplayer
.gate_waiting
->flags
& k_ent_gate_nonlocal
) ){
470 view_world
= &world_static
.instances
[world_static
.active_instance
^ 0x1];
476 static void render_scene(void){
478 glEnable( GL_DEPTH_TEST
);
480 for( u32 i
=0; i
<vg_list_size(world_static
.instances
); i
++ ){
481 if( world_static
.instances
[i
].status
== k_world_status_loaded
){
482 world_prerender( &world_static
.instances
[i
] );
486 if( skaterift
.activity
== k_skaterift_world_map
){
487 world_instance
*world
= world_current_instance();
488 glDrawBuffers( 1, (GLenum
[]){ GL_COLOR_ATTACHMENT0
} );
491 v3_muls( world
->ub_lighting
.g_daysky_colour
,
492 world
->ub_lighting
.g_day_phase
-
493 world
->ub_lighting
.g_sunset_phase
*0.1f
, bg
);
495 v3_muladds( bg
, world
->ub_lighting
.g_sunset_colour
,
496 (1.0f
-0.5f
)*world
->ub_lighting
.g_sunset_phase
, bg
);
498 v3_muladds( bg
, world
->ub_lighting
.g_nightsky_colour
,
499 (1.0f
-world
->ub_lighting
.g_day_phase
), bg
);
501 glClearColor( bg
[0], bg
[1], bg
[2], 0.0f
);
502 glClear( GL_COLOR_BUFFER_BIT
);
503 glDrawBuffers( 2, (GLenum
[]){ GL_COLOR_ATTACHMENT0
,
504 GL_COLOR_ATTACHMENT1
} );
507 m4x3_identity( identity
);
508 render_world_override( world
, world
, identity
, &skaterift
.cam
,
510 (v4f
){world
->tar_min
, world
->tar_max
, 1.0f
, 0.0f
});
511 render_world_routes( world
, world
, identity
, &skaterift
.cam
, 0, 1 );
515 world_instance
*view_world
= get_view_world();
516 render_world( view_world
, &skaterift
.cam
, 0, 0, 1, 1 );
518 particle_system_update( &particles_grind
, vg
.time_delta
);
519 //particle_system_debug( &particles_grind );
520 particle_system_prerender( &particles_grind
);
521 particle_system_render( &particles_grind
, &skaterift
.cam
);
523 ent_tornado_pre_update();
524 particle_system_update( &particles_env
, vg
.time_delta
);
525 particle_system_prerender( &particles_env
);
526 particle_system_render( &particles_env
, &skaterift
.cam
);
528 player_glide_render_effects( &skaterift
.cam
);
533 if( global_miniworld
.transition
== 0 )
536 world_instance
*holdout_world
= NULL
;
539 if( global_miniworld
.transition
== 1 ){
540 holdout_world
= &world_static
.instances
[ k_world_purpose_hub
];
541 t
= global_miniworld
.t
;
544 holdout_world
= &world_static
.instances
[ k_world_purpose_client
];
545 t
= 1.0f
-global_miniworld
.t
;
548 if( holdout_world
->status
!= k_world_status_loaded
)
551 t
= vg_smoothstepf( t
);
553 glEnable( GL_STENCIL_TEST
);
554 glDisable( GL_DEPTH_TEST
);
555 glStencilOp( GL_KEEP
, GL_KEEP
, GL_REPLACE
);
556 glStencilFunc( GL_ALWAYS
, 1, 0xFF );
557 glStencilMask( 0xFF );
559 shader_blit_transition_use();
560 shader_blit_transition_uInverseRatio( (v2f
){1.0f
,1.0f
} );
561 shader_blit_transition_uT( -(sqrtf(2)+0.5f
) * t
);
564 render_world( holdout_world
, &global_miniworld
.cam
, 1, 0, 1, 1 );
567 static void skaterift_composite_maincamera(void)
569 vg_camera_lerp( &localplayer
.cam
, &world_static
.focus_cam
,
570 vg_smoothstepf(world_static
.focus_strength
), &skaterift
.cam
);
572 if( skaterift
.activity
== k_skaterift_replay
)
574 if( player_replay
.use_freecam
)
577 v3_copy( player_replay
.replay_freecam
.pos
, skaterift
.cam
.pos
);
578 v3_copy( player_replay
.replay_freecam
.angles
, skaterift
.cam
.angles
);
579 skaterift
.cam
.fov
= player_replay
.replay_freecam
.fov
;
583 skaterift_get_replay_cam( &skaterift
.cam
);
587 skaterift
.cam
.nearz
= 0.1f
;
588 skaterift
.cam
.farz
= 2100.0f
;
590 if( skaterift
.activity
== k_skaterift_world_map
){
591 vg_camera_copy( &world_map
.cam
, &skaterift
.cam
);
592 skaterift
.cam
.nearz
= 4.0f
;
593 skaterift
.cam
.farz
= 3100.0f
;
596 if( global_miniworld
.transition
){
597 f32 dt
= vg
.time_frame_delta
/ 2.0f
,
598 s
= vg_signf( global_miniworld
.transition
);
599 global_miniworld
.t
+= s
* dt
;
601 if( (global_miniworld
.t
> 1.0f
) || (global_miniworld
.t
< 0.0f
) ){
602 global_miniworld
.t
= vg_clampf( global_miniworld
.t
, 0.0f
, 1.0f
);
603 global_miniworld
.transition
= 0;
607 vg_camera_update_transform( &skaterift
.cam
);
608 vg_camera_update_view( &skaterift
.cam
);
609 vg_camera_update_projection( &skaterift
.cam
);
610 vg_camera_finalize( &skaterift
.cam
);
613 static void render_main_game(void){
614 if( skaterift
.activity
== k_skaterift_replay
){
615 player__animate_from_replay( &player_replay
.local
);
619 skaterift_record_frame( &player_replay
.local
,
620 localplayer
.deferred_frame_record
);
621 localplayer
.deferred_frame_record
= 0;
623 animate_remote_players();
624 player__pre_render();
626 skaterift_composite_maincamera();
628 /* --------------------------------------------------------------------- */
629 if( skaterift
.activity
!= k_skaterift_world_map
){
630 world_instance
*world
= world_current_instance();
631 render_world_cubemaps( world
);
633 ent_gate
*nlg
= world
->rendering_gate
;
634 if( nlg
&& nlg
->flags
& k_ent_gate_nonlocal
)
635 render_world_cubemaps( &world_static
.instances
[nlg
->target
] );
638 /* variable res target */
639 render_fb_bind( gpipeline
.fb_main
, 1 );
640 glClearColor( 0.0f
, 0.0f
, 0.0f
, 1.0f
);
641 glClear( GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
|GL_STENCIL_BUFFER_BIT
);
644 glEnable( GL_DEPTH_TEST
);
646 /* full res target */
647 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
648 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
650 render_player_transparent(); /* needs to read the depth buffer before we fuck
651 it up with the oblique rendering inside the
654 /* continue with variable rate */
655 if( !global_miniworld
.transition
&&
656 (skaterift
.activity
!= k_skaterift_world_map
) ){
657 render_fb_bind( gpipeline
.fb_main
, 1 );
658 render_world_gates( get_view_world(), &skaterift
.cam
);
662 present_view_with_post_processing();
663 skaterift_replay_post_render();
664 control_overlay_render();
670 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
671 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
672 glClearColor( 0.0f
, 0.0f
, 0.0f
, 0.0f
);
673 glClear( GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
);
677 if( skaterift
.op
== k_async_op_clientloading
){
682 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
684 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
685 glDisable( GL_DEPTH_TEST
);
686 glDisable( GL_BLEND
);
688 glClearColor( 1.0f
, 0.0f
, 0.0f
, 0.0f
);
689 glClear( GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
);
692 m4x4_copy( skaterift
.cam
.mtx
.pv
, vg
.pv
);
696 glDisable(GL_DEPTH_TEST
);
698 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
705 if( skaterift
.op
== k_async_op_clientloading
) return;
711 ui_rect screen
= { 0, 0, vg
.window_x
, vg
.window_y
};
712 ui_rect panel
= { 0, 0, 1000, 700 };
713 ui_rect_center( screen
, panel
);
714 vg_ui
.wants_mouse
= 1;
716 ui_fill( panel
, ui_colour( k_ui_bg
+1 ) );
717 ui_outline( panel
, 1, ui_colour( k_ui_bg
+7 ), 0 );
719 ui_rect_pad( panel
, (ui_px
[2]){ 8, 8 } );
725 imgui_world_light_edit( world_current_instance() );
727 vg_ui
.tex_bg
= gpipeline
.fb_main
->attachments
[0].id
;
728 render_fb_inverse_ratio( gpipeline
.fb_main
, vg_ui
.bg_inverse_ratio
);
731 if( skaterift
.activity
== k_skaterift_menu
){
732 glClear( GL_DEPTH_BUFFER_BIT
);
737 world_instance
*world
= world_current_instance();
739 world_routes_imgui( world
);
740 skaterift_replay_imgui();
742 render_view_framebuffer_ui();
743 remote_player_network_imgui( vg
.pv
);
745 if( skaterift
.activity
== k_skaterift_world_map
){
746 remote_players_imgui_world( world_current_instance(), vg
.pv
, 2000.0f
, 0 );
747 remote_players_imgui_lobby();
750 remote_players_chat_imgui(); /* TODO: conditional */
751 remote_players_imgui_world( world_current_instance(), vg
.pv
, 100.0f
, 1 );
756 #include "addon_types.c"
758 #include "ent_challenge.c"
759 #include "ent_glider.c"
761 #include "ent_miniworld.c"
762 #include "ent_objective.c"
763 #include "ent_region.c"
764 #include "ent_relay.c"
765 #include "ent_route.c"
766 #include "ent_skateshop.c"
767 #include "ent_tornado.c"
768 #include "ent_traffic.c"
772 #include "particle.c"
773 #include "player_basic_info.c"
775 #include "player_common.c"
776 #include "player_dead.c"
777 #include "player_drive.c"
778 #include "player_effects.c"
779 #include "player_glide.c"
780 #include "player_ragdoll.c"
781 #include "player_remote.c"
782 #include "player_render.c"
783 #include "player_replay.c"
784 #include "player_skate.c"
785 #include "player_walk.c"
792 #include "workshop.c"
793 #include "world_audio.c"
795 #include "world_entity.c"
796 #include "world_gate.c"
797 #include "world_gen.c"
798 #include "world_load.c"
799 #include "world_map.c"
800 #include "world_physics.c"
801 #include "world_render.c"
802 #include "world_routes.c"
803 #include "world_routes_ui.c"
804 #include "world_sfd.c"
805 #include "world_volumes.c"
806 #include "world_water.c"
809 #include "control_overlay.c"