a more comprehensive workshop system
[carveJwlIkooP6JGAAIwe30JlM.git] / workshop.h
1 #ifndef WORKSHOP_H
2 #define WORKSHOP_H
3
4 #include "workshop_types.h"
5
6 #define VG_GAME
7 #include "vg/vg.h"
8 #include "vg/vg_steam_remote_storage.h"
9 #include "skaterift.h"
10 #include "pointcloud.h"
11
12 struct async_workshop_filepath_info{
13 PublishedFileId_t id;
14 char *buf;
15 u32 len;
16 };
17
18 struct async_workshop_installed_files_info{
19 PublishedFileId_t *buffer;
20 u32 *len; /* inout */
21 };
22
23 struct async_workshop_metadata_info{
24 struct workshop_file_info *info;
25 const char *path;
26 };
27
28 VG_STATIC void async_workshop_get_filepath( void *data, u32 len );
29 VG_STATIC void async_workshop_get_installed_files( void *data, u32 len );
30 VG_STATIC void workshop_load_metadata( const char *path,
31 struct workshop_file_info *info );
32
33 /* generic reciever */
34 VG_STATIC void workshop_async_any_complete( void *data, u32 size )
35 {
36 skaterift_end_op();
37 }
38
39 #endif /* WORKSHOP_H */