2 * =============================================================================
4 * Copyright . . . -----, ,----- ,---. .---.
5 * 2021-2024 |\ /| | / | | | | /|
6 * | \ / | +-- / +----- +---' | / |
7 * | \ / | | / | | \ | / |
8 * | \/ | | / | | \ | / |
9 * ' ' '--' [] '----- '----- ' ' '---' SOFTWARE
11 * =============================================================================
14 #define SR_ALLOW_REWIND_HUB
18 * --------------------- */
20 #include "skaterift.h"
23 #include "vg/vg_opt.h"
24 #include "vg/vg_loader.h"
35 #include "player_remote.h"
39 #include "ent_tornado.h"
40 #include "ent_miniworld.h"
41 #include "ent_skateshop.h"
42 #include "world_map.h"
46 #include "player_render.h"
48 struct skaterift_globals skaterift
=
50 .op
= k_async_op_clientloading
, .time_rate
= 1.0f
, .demo_mode
= 1,
51 .hub_world
= "maps/dev_hub",
54 static int k_tools_mode
= 0;
56 int main( int argc
, char *argv
[] ){
57 vg_mem
.use_libc_malloc
= 0;
58 vg_set_mem_quota( 160*1024*1024 );
59 vg_enter( argc
, argv
, "Voyager Game Engine" );
63 void vg_launch_opt(void)
66 if( vg_long_opt( "noauth" ) ){
67 network_client
.auth_mode
= eServerModeNoAuthentication
;
70 if( (arg
= vg_long_opt_arg( "server" )) ){
71 vg_strncpy( arg
, network_client
.server_adress
, 64,
72 k_strncpy_overflow_fatal
);
75 if( vg_long_opt( "tools" ) ){
79 if( vg_long_opt( "demo" ) ){
80 skaterift
.demo_mode
= 1;
83 if( (arg
= vg_long_opt_arg( "world" )) ){
84 skaterift
.hub_world
= arg
;
90 vg_info(" Copyright . . . -----, ,----- ,---. .---. \n" );
91 vg_info(" 2021-2023 |\\ /| | / | | | | /| \n" );
92 vg_info(" | \\ / | +-- / +----- +---' | / | \n" );
93 vg_info(" | \\ / | | / | | \\ | / | \n" );
94 vg_info(" | \\/ | | / | | \\ | / | \n" );
95 vg_info(" ' ' '--' [] '----- '----- ' ' '---' "
98 /* please forgive me! */
100 if( (drm
= vg_file_read_text( vg_mem
.scratch
, "DRM", &sz
)) )
101 if( !strcmp(drm
, "blibby!") )
102 skaterift
.demo_mode
= 0;
104 vg_loader_step( remote_players_init
, NULL
);
110 vg_loader_step( NULL
, steam_end
);
111 vg_loader_step( network_init
, network_end
);
114 static void async_skaterift_player_start( void *payload
, u32 size
){
115 world_switch_instance(0);
118 static void async_call_ready( void *payload
, u32 size
){
119 skaterift
.op
= k_async_op_none
;
122 static void skaterift_restore_state(void)
125 skaterift_read_main_savedata( &sav
);
128 vg_msg_init( &kvsav
, sav
.buf
, sizeof(sav
.buf
) );
131 vg_msg_getkvintg( &kvsav
, "ach", k_vg_msg_u32
, &ach
);
132 skaterift
.achievements
|= ach
;
134 u32 board_reg_id
= 0,
137 vg_msg_cursor orig
= kvsav
.cur
;
138 if( vg_msg_seekframe( &kvsav
, "player" ) ){
142 skaterift_read_addon_alias( &kvsav
, "board", k_addon_type_board
, &q
);
143 u32 reg_id
= addon_match( &q
);
144 if( reg_id
!= 0xffffffff )
145 board_reg_id
= reg_id
;
148 skaterift_read_addon_alias( &kvsav
, "playermodel",
149 k_addon_type_player
, &q
);
150 reg_id
= addon_match( &q
);
151 if( reg_id
!= 0xffffffff )
152 player_reg_id
= reg_id
;
155 localplayer
.board_view_slot
=
156 addon_cache_create_viewer( k_addon_type_board
, board_reg_id
);
157 localplayer
.playermodel_view_slot
=
158 addon_cache_create_viewer( k_addon_type_player
, player_reg_id
);
163 static addon_reg
*skaterift_mount_world_unloadable( const char *path
, u32 ext
){
164 addon_reg
*reg
= addon_mount_local_addon( path
, k_addon_type_world
, ".mdl" );
165 if( !reg
) vg_fatal_error( "world not found\n" );
166 reg
->flags
|= (ADDON_REG_HIDDEN
| ext
);
170 static void skaterift_load_world_content(void){
172 addon_reg
*hub
= skaterift_mount_world_unloadable( skaterift
.hub_world
, 0 );
173 skaterift_mount_world_unloadable( "maps/mp_spawn",
174 ADDON_REG_CITY
|ADDON_REG_PREMIUM
);
175 skaterift_mount_world_unloadable( "maps/mp_mtzero",
176 ADDON_REG_MTZERO
|ADDON_REG_PREMIUM
);
177 skaterift_mount_world_unloadable( "maps/dev_tutorial", 0 );
178 skaterift_mount_world_unloadable( "maps/dev_flatworld", 0 );
180 world_static
.load_state
= k_world_loader_load
;
182 struct world_load_args args
= {
183 .purpose
= k_world_purpose_hub
,
186 skaterift_world_load_thread( &args
);
189 static void skaterift_load_player_content(void){
190 u32 bytes
= 1024*1024*10;
191 player_replay
.local
.data
= vg_linear_alloc( vg_mem
.rtmemory
, bytes
);
192 player_replay
.local
.size
= bytes
;
193 replay_clear( &player_replay
.local
);
195 particle_alloc( &particles_grind
, 300 );
196 particle_alloc( &particles_env
, 200 );
198 player_load_animation_reference( "models/ch_none.mdl" );
199 player_model_load( &localplayer
.fallback_model
, "models/ch_none.mdl" );
201 player_board_load( &localplayer
.fallback_board
, "models/board_none.mdl" );
207 vg_async_call( async_call_ready
, NULL
, 0 );
211 vg_audio
.always_keep_compressed
= 1;
213 vg_console_reg_cmd( "load_world", skaterift_load_world_command
, NULL
);
214 vg_console_reg_cmd( "fc", freecam_cmd
, NULL
);
215 vg_console_reg_var( "immobile", &localplayer
.immobile
, k_var_dtype_i32
, 0 );
217 vg_loader_step( render_init
, NULL
);
218 vg_loader_step( menu_init
, NULL
);
219 vg_loader_step( world_init
, NULL
);
220 vg_loader_step( vehicle_init
, NULL
);
221 vg_loader_step( gui_init
, NULL
);
223 vg_loader_step( player_init
, NULL
);
224 vg_loader_step( player_ragdoll_init
, NULL
);
227 vg_loader_step( addon_system_init
, NULL
);
228 vg_loader_step( workshop_init
, NULL
);
229 vg_loader_step( skateshop_init
, NULL
);
230 vg_loader_step( ent_tornado_init
, NULL
);
231 vg_loader_step( skaterift_load_player_content
, NULL
);
233 /* --------------------- */
236 vg_loader_step( audio_init
, audio_free
);
238 /* 'systems' are completely loaded now */
240 /* Completing addon registrations
241 * -------------------------------------
244 /* load home/permanent world manually */
245 vg_loader_step( skaterift_load_world_content
, NULL
);
246 vg_async_call( async_skaterift_player_start
, NULL
, 0 );
249 vg_console_load_autos();
252 addon_mount_content_folder( k_addon_type_player
,
253 "playermodels", ".mdl" );
254 addon_mount_content_folder( k_addon_type_board
, "boards", ".mdl" );
255 addon_mount_content_folder( k_addon_type_world
, "maps", ".mdl" );
256 addon_mount_workshop_items();
257 vg_async_call( async_addon_reg_update
, NULL
, 0 );
261 skaterift_restore_state();
264 vg_loader_step( NULL
, skaterift_autosave_synchronous
);
266 //board_processview_thread(NULL);
267 vg_async_call( async_call_ready
, NULL
, 0 );
270 static void draw_origin_axis(void){
271 vg_line( (v3f
){ 0.0f
, 0.0f
, 0.0f
}, (v3f
){ 1.0f
, 0.0f
, 0.0f
}, 0xffff0000 );
272 vg_line( (v3f
){ 0.0f
, 0.0f
, 0.0f
}, (v3f
){ 0.0f
, 1.0f
, 0.0f
}, 0xff00ff00 );
273 vg_line( (v3f
){ 0.0f
, 0.0f
, 0.0f
}, (v3f
){ 0.0f
, 0.0f
, 1.0f
}, 0xff0000ff );
275 void skaterift_change_client_world_preupdate(void);
279 * ---------------------------------------------------------------------------*/
281 void vg_pre_update(void)
283 skaterift_preupdate_inputs();
285 if( k_tools_mode
) return;
288 if( skaterift
.op
== k_async_op_clientloading
) return;
289 if( world_static
.load_state
== k_world_loader_preload
)
290 skaterift_change_client_world_preupdate();
293 skateshop_autostart_loading();
298 if( skaterift
.activity
& (k_skaterift_replay
|k_skaterift_menu
|
299 k_skaterift_world_map
) ){
303 vg_slewf( &skaterift
.time_rate
, target
, vg
.time_frame_delta
* (1.0f
/0.3f
) );
304 vg
.time_rate
= vg_smoothstepf( skaterift
.time_rate
);
306 /* TODO: how can we compress this? */
307 ent_miniworld_preupdate();
308 player__pre_update();
309 world_entity_focus_preupdate();
310 skaterift_replay_pre_update();
311 remote_sfx_pre_update();
312 skateshop_world_preupdate( world_current_instance() );
314 world_update( world_current_instance(), localplayer
.rb
.co
);
315 audio_ambient_sprites_update( world_current_instance(), localplayer
.rb
.co
);
316 world_map_pre_update();
319 void vg_fixed_update(void)
321 if( k_tools_mode
) return;
322 if( skaterift
.op
== k_async_op_clientloading
) return;
324 world_routes_fixedupdate( world_current_instance() );
326 vehicle_update_fixed();
329 void vg_post_update(void)
331 if( k_tools_mode
) return;
332 if( skaterift
.op
== k_async_op_clientloading
) return;
334 player__post_update();
338 world_audio_sample_distances( localplayer
.rb
.co
, &sample_index
, &dist
);
341 vg_dsp
.echo_distances
[sample_index
] = dist
;
343 v3f ears
= { 1.0f
,0.0f
,0.0f
};
344 m3x3_mulv( skaterift
.cam
.transform
, ears
, ears
);
345 v3_copy( ears
, vg_audio
.external_listener_ears
);
346 v3_copy( skaterift
.cam
.transform
[3], vg_audio
.external_listener_pos
);
348 if( localplayer
.gate_waiting
){
349 m4x3_mulv( localplayer
.gate_waiting
->transport
,
350 vg_audio
.external_listener_pos
,
351 vg_audio
.external_listener_pos
);
354 v3_copy( localplayer
.rb
.v
, vg_audio
.external_lister_velocity
);
357 vehicle_update_post();
358 skaterift_autosave_update();
363 * ---------------------------------------------------------------------------*/
365 void vg_framebuffer_resize( int w
, int h
){
369 static void present_view_with_post_processing(void){
370 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
371 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
374 glDisable(GL_DEPTH_TEST
);
375 glBlendFunc(GL_ONE_MINUS_DST_ALPHA
, GL_DST_ALPHA
);
376 glBlendEquation(GL_FUNC_ADD
);
379 render_fb_inverse_ratio( gpipeline
.fb_main
, inverse
);
382 shader_blitblur_use();
383 shader_blitblur_uTexMain( 0 );
384 shader_blitblur_uTexMotion( 1 );
385 shader_blitblur_uBlurStrength( k_blur_strength
/
386 (vg
.time_frame_delta
*60.0) );
387 shader_blitblur_uInverseRatio( inverse
);
389 inverse
[0] -= 0.0001f
;
390 inverse
[1] -= 0.0001f
;
391 shader_blitblur_uClampUv( inverse
);
393 static f64 effect_time
= 133.0;
394 effect_time
+= vg
.time_frame_delta
;
395 shader_blitblur_uTime( effect_time
);
397 f32 glitch_strength
= 0.0f
;
398 if( skaterift
.activity
== k_skaterift_replay
){
399 glitch_strength
= 0.005f
;
400 if( player_replay
.replay_control
== k_replay_control_play
)
401 glitch_strength
= 0.005f
;
403 glitch_strength
+= 0.005f
*player_replay
.track_velocity
;
405 shader_blitblur_uGlitchStrength( glitch_strength
);
408 if( skaterift
.activity
== k_skaterift_menu
)
409 v2_muls( (v2f
){ 0.04f
, 0.001f
}, 1.0f
-skaterift
.time_rate
, override
);
412 shader_blitblur_uOverrideDir( override
);
414 render_fb_bind_texture( gpipeline
.fb_main
, 0, 0 );
415 render_fb_bind_texture( gpipeline
.fb_main
, 1, 1 );
419 shader_blit_uTexMain( 0 );
420 shader_blit_uInverseRatio( inverse
);
421 render_fb_bind_texture( gpipeline
.fb_main
, 0, 0 );
427 static void render_player_transparent(void){
428 static vg_camera small_cam
; /* DOES NOT NEED TO BE STATIC BUT MINGW
431 m4x3_copy( skaterift
.cam
.transform
, small_cam
.transform
);
433 small_cam
.fov
= skaterift
.cam
.fov
;
434 small_cam
.nearz
= 0.05f
;
435 small_cam
.farz
= 60.0f
;
437 vg_camera_update_view( &small_cam
);
438 vg_camera_update_projection( &small_cam
);
439 vg_camera_finalize( &small_cam
);
441 /* Draw player to window buffer and blend background ontop */
442 player__render( &small_cam
);
445 static world_instance
*get_view_world(void){
446 world_instance
*view_world
= world_current_instance();
447 if( localplayer
.gate_waiting
&&
448 (localplayer
.gate_waiting
->flags
& k_ent_gate_nonlocal
) ){
449 view_world
= &world_static
.instances
[world_static
.active_instance
^ 0x1];
455 static void render_scene(void){
457 glEnable( GL_DEPTH_TEST
);
459 for( u32 i
=0; i
<vg_list_size(world_static
.instances
); i
++ ){
460 if( world_static
.instances
[i
].status
== k_world_status_loaded
){
461 world_prerender( &world_static
.instances
[i
] );
465 if( skaterift
.activity
== k_skaterift_world_map
){
466 world_instance
*world
= world_current_instance();
467 glDrawBuffers( 1, (GLenum
[]){ GL_COLOR_ATTACHMENT0
} );
470 v3_muls( world
->ub_lighting
.g_daysky_colour
,
471 world
->ub_lighting
.g_day_phase
-
472 world
->ub_lighting
.g_sunset_phase
*0.1f
, bg
);
474 v3_muladds( bg
, world
->ub_lighting
.g_sunset_colour
,
475 (1.0f
-0.5f
)*world
->ub_lighting
.g_sunset_phase
, bg
);
477 v3_muladds( bg
, world
->ub_lighting
.g_nightsky_colour
,
478 (1.0f
-world
->ub_lighting
.g_day_phase
), bg
);
480 glClearColor( bg
[0], bg
[1], bg
[2], 0.0f
);
481 glClear( GL_COLOR_BUFFER_BIT
);
482 glDrawBuffers( 2, (GLenum
[]){ GL_COLOR_ATTACHMENT0
,
483 GL_COLOR_ATTACHMENT1
} );
486 m4x3_identity( identity
);
487 render_world_override( world
, world
, identity
, &skaterift
.cam
,
489 (v4f
){world
->tar_min
, world
->tar_max
, 1.0f
, 0.0f
});
490 render_world_routes( world
, world
, identity
, &skaterift
.cam
, 0, 1 );
494 world_instance
*view_world
= get_view_world();
495 render_world( view_world
, &skaterift
.cam
, 0, 0, 1, 1 );
497 particle_system_update( &particles_grind
, vg
.time_delta
);
498 //particle_system_debug( &particles_grind );
499 particle_system_prerender( &particles_grind
);
500 particle_system_render( &particles_grind
, &skaterift
.cam
);
502 ent_tornado_pre_update();
503 particle_system_update( &particles_env
, vg
.time_delta
);
504 particle_system_prerender( &particles_env
);
505 particle_system_render( &particles_env
, &skaterift
.cam
);
507 player_glide_render_effects( &skaterift
.cam
);
512 if( global_miniworld
.transition
== 0 )
515 world_instance
*holdout_world
= NULL
;
518 if( global_miniworld
.transition
== 1 ){
519 holdout_world
= &world_static
.instances
[ k_world_purpose_hub
];
520 t
= global_miniworld
.t
;
523 holdout_world
= &world_static
.instances
[ k_world_purpose_client
];
524 t
= 1.0f
-global_miniworld
.t
;
527 if( holdout_world
->status
!= k_world_status_loaded
)
530 t
= vg_smoothstepf( t
);
532 glEnable( GL_STENCIL_TEST
);
533 glDisable( GL_DEPTH_TEST
);
534 glStencilOp( GL_KEEP
, GL_KEEP
, GL_REPLACE
);
535 glStencilFunc( GL_ALWAYS
, 1, 0xFF );
536 glStencilMask( 0xFF );
538 shader_blit_transition_use();
539 shader_blit_transition_uInverseRatio( (v2f
){1.0f
,1.0f
} );
540 shader_blit_transition_uT( -(sqrtf(2)+0.5f
) * t
);
543 render_world( holdout_world
, &global_miniworld
.cam
, 1, 0, 1, 1 );
546 static void skaterift_composite_maincamera(void){
547 vg_camera_lerp( &localplayer
.cam
, &world_static
.focus_cam
,
548 vg_smoothstepf(world_static
.focus_strength
), &skaterift
.cam
);
550 if( player_replay
.freecam
){
552 v3_copy( player_replay
.replay_freecam
.pos
, skaterift
.cam
.pos
);
553 v3_copy( player_replay
.replay_freecam
.angles
, skaterift
.cam
.angles
);
554 skaterift
.cam
.fov
= player_replay
.replay_freecam
.fov
;
557 if( skaterift
.activity
== k_skaterift_replay
){
558 replay_get_camera( &player_replay
.local
, &skaterift
.cam
);
562 skaterift
.cam
.nearz
= 0.1f
;
563 skaterift
.cam
.farz
= 2100.0f
;
565 if( skaterift
.activity
== k_skaterift_world_map
){
566 vg_camera_copy( &world_map
.cam
, &skaterift
.cam
);
567 skaterift
.cam
.nearz
= 4.0f
;
568 skaterift
.cam
.farz
= 3100.0f
;
571 if( global_miniworld
.transition
){
572 f32 dt
= vg
.time_frame_delta
/ 2.0f
,
573 s
= vg_signf( global_miniworld
.transition
);
574 global_miniworld
.t
+= s
* dt
;
576 if( (global_miniworld
.t
> 1.0f
) || (global_miniworld
.t
< 0.0f
) ){
577 global_miniworld
.t
= vg_clampf( global_miniworld
.t
, 0.0f
, 1.0f
);
578 global_miniworld
.transition
= 0;
582 vg_camera_update_transform( &skaterift
.cam
);
583 vg_camera_update_view( &skaterift
.cam
);
584 vg_camera_update_projection( &skaterift
.cam
);
585 vg_camera_finalize( &skaterift
.cam
);
588 static void render_main_game(void){
589 if( skaterift
.activity
== k_skaterift_replay
){
590 player__animate_from_replay( &player_replay
.local
);
594 skaterift_record_frame( &player_replay
.local
,
595 localplayer
.deferred_frame_record
);
596 localplayer
.deferred_frame_record
= 0;
598 animate_remote_players();
599 player__pre_render();
601 skaterift_composite_maincamera();
603 /* --------------------------------------------------------------------- */
604 if( skaterift
.activity
!= k_skaterift_world_map
){
605 world_instance
*world
= world_current_instance();
606 render_world_cubemaps( world
);
608 ent_gate
*nlg
= world
->rendering_gate
;
609 if( nlg
&& nlg
->flags
& k_ent_gate_nonlocal
)
610 render_world_cubemaps( &world_static
.instances
[nlg
->target
] );
613 /* variable res target */
614 render_fb_bind( gpipeline
.fb_main
, 1 );
615 glClearColor( 0.0f
, 0.0f
, 0.0f
, 1.0f
);
616 glClear( GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
|GL_STENCIL_BUFFER_BIT
);
619 glEnable( GL_DEPTH_TEST
);
621 /* full res target */
622 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
623 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
625 render_player_transparent(); /* needs to read the depth buffer before we fuck
626 it up with the oblique rendering inside the
629 /* continue with variable rate */
630 if( !global_miniworld
.transition
&&
631 (skaterift
.activity
!= k_skaterift_world_map
) ){
632 render_fb_bind( gpipeline
.fb_main
, 1 );
633 render_world_gates( get_view_world(), &skaterift
.cam
);
637 present_view_with_post_processing();
638 skaterift_replay_post_render();
644 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
645 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
646 glClearColor( 0.0f
, 0.0f
, 0.0f
, 0.0f
);
647 glClear( GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
);
651 if( skaterift
.op
== k_async_op_clientloading
){
656 glBindFramebuffer( GL_FRAMEBUFFER
, 0 );
658 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
659 glDisable( GL_DEPTH_TEST
);
660 glDisable( GL_BLEND
);
662 glClearColor( 1.0f
, 0.0f
, 0.0f
, 0.0f
);
663 glClear( GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
);
666 m4x4_copy( skaterift
.cam
.mtx
.pv
, vg
.pv
);
670 glDisable(GL_DEPTH_TEST
);
672 glViewport( 0,0, vg
.window_x
, vg
.window_y
);
678 if( skaterift
.op
== k_async_op_clientloading
) return;
682 ui_rect screen
= { 0, 0, vg
.window_x
, vg
.window_y
};
683 ui_rect panel
= { 0, 0, 1000, 700 };
684 ui_rect_center( screen
, panel
);
685 vg_ui
.wants_mouse
= 1;
687 ui_fill( panel
, ui_colour( k_ui_bg
+1 ) );
688 ui_outline( panel
, 1, ui_colour( k_ui_bg
+7 ), 0 );
690 ui_rect_pad( panel
, (ui_px
[2]){ 8, 8 } );
696 imgui_world_light_edit( world_current_instance() );
698 vg_ui
.tex_bg
= gpipeline
.fb_main
->attachments
[0].id
;
699 render_fb_inverse_ratio( gpipeline
.fb_main
, vg_ui
.bg_inverse_ratio
);
702 if( skaterift
.activity
== k_skaterift_menu
){
703 glClear( GL_DEPTH_BUFFER_BIT
);
708 world_instance
*world
= world_current_instance();
710 world_routes_imgui( world
);
711 skaterift_replay_imgui();
713 render_view_framebuffer_ui();
714 remote_player_network_imgui( vg
.pv
);
716 if( skaterift
.activity
== k_skaterift_world_map
){
717 remote_players_imgui_world( world_current_instance(), vg
.pv
, 2000.0f
, 0 );
718 remote_players_imgui_lobby();
721 remote_players_chat_imgui(); /* TODO: conditional */
722 remote_players_imgui_world( world_current_instance(), vg
.pv
, 100.0f
, 1 );
727 #include "addon_types.c"
729 #include "ent_challenge.c"
730 #include "ent_glider.c"
732 #include "ent_miniworld.c"
733 #include "ent_objective.c"
734 #include "ent_region.c"
735 #include "ent_relay.c"
736 #include "ent_route.c"
737 #include "ent_skateshop.c"
738 #include "ent_tornado.c"
739 #include "ent_traffic.c"
743 #include "particle.c"
744 #include "player_basic_info.c"
746 #include "player_common.c"
747 #include "player_dead.c"
748 #include "player_drive.c"
749 #include "player_effects.c"
750 #include "player_glide.c"
751 #include "player_ragdoll.c"
752 #include "player_remote.c"
753 #include "player_render.c"
754 #include "player_replay.c"
755 #include "player_skate.c"
756 #include "player_walk.c"
763 #include "workshop.c"
764 #include "world_audio.c"
766 #include "world_entity.c"
767 #include "world_gate.c"
768 #include "world_gen.c"
769 #include "world_load.c"
770 #include "world_map.c"
771 #include "world_physics.c"
772 #include "world_render.c"
773 #include "world_routes.c"
774 #include "world_routes_ui.c"
775 #include "world_sfd.c"
776 #include "world_volumes.c"
777 #include "world_water.c"