mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-20 13:15:16 -04:00
prepare launcher for UGC
This commit is contained in:
parent
86d0919905
commit
4ed39ec344
11 changed files with 342 additions and 121 deletions
29
platform/ugc.h
Normal file
29
platform/ugc.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *ddl_path;
|
||||
const char *author;
|
||||
time_t last_played;
|
||||
} UGCItem;
|
||||
|
||||
typedef struct tag_UGCManager UGCManager;
|
||||
|
||||
|
||||
void UGCSetLocalFoler(const char *path);
|
||||
UGCManager *UGC_create();
|
||||
size_t UGC_Fetch(UGCManager *manager);
|
||||
UGCItem UGC_GetItem(UGCManager *manager, size_t pos);
|
||||
void UGC_StartPlay(UGCManager *manager, size_t pos);
|
||||
void UGC_Destroy(UGCManager *inst);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue