1e2fba31e67ac12bc4c6eb0d14761c826f3d372d
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.h
1 #ifndef SKATERIFT_H
2 #define SKATERIFT_H
3
4 #define SKATERIFT_APPID 2103940
5
6 #define VG_TIMESTEP_FIXED (1.0/60.0)
7 #define VG_3D
8 #define VG_GAME
9 #define VG_MSG_V1_SUPPORT
10 #define VG_LOG_SOURCE_INFO
11 #include "vg/vg.h"
12 #include "world.h"
13 #include "addon.h"
14
15 struct{
16 enum async_operation{
17 k_async_op_none,
18 k_async_op_clientloading,
19 k_async_op_world_scan,
20 k_async_op_world_load_preview,
21 k_async_op_board_scan,
22 k_async_op_player_scan,
23 k_async_op_board_load,
24 k_async_op_write_savedata,
25 }
26 op;
27
28 f32 time_rate;
29 camera cam, replay_cam;
30
31 replay_buffer replay;
32 enum replay_control {
33 k_replay_control_scrub,
34 k_replay_control_play,
35 k_replay_control_resume
36 }
37 replay_control;
38 f32 track_velocity;
39
40 enum skaterift_activity {
41 k_skaterift_default = 0x00,
42 k_skaterift_replay = 0x01,
43 k_skaterift_skateshop = 0x02,
44 k_skaterift_menu = 0x04
45 }
46 activity;
47 }
48 static skaterift = { .op = k_async_op_clientloading, .time_rate = 1.0f };
49
50 /* Skaterift api */
51 static void skaterift_change_world_start( void );
52 static int skaterift_change_world_command( int argc, const char *argv[] );
53
54 #endif /* SKATERIFT_H */