1 #ifndef ENT_SKATESHOP_H
2 #define ENT_SKATESHOP_H
6 #include "vg/vg_steam_remote_storage.h"
9 #define SKATESHOP_REGISTRY_MAX 64
10 #define SKATESHOP_BOARD_CACHE_MAX 10
11 #define SKATESHOP_WORLDS_MAX 32
12 #define SKATESHOP_VIEW_SLOT_MAX 6
13 #define SKATESHOP_REGISTRYID_NONE 0xffffffff
17 ent_skateshop
*ptr_ent
;
23 enum cache_board_state
{
24 k_cache_board_state_none
,
25 k_cache_board_state_loaded
,
26 k_cache_board_state_load_request
30 struct player_board board
;
37 SDL_SpinLock sl_cache_access
;
39 struct shop_view_slot
{
40 struct cache_board
*cache_ptr
;
43 shop_view_slots
[ SKATESHOP_VIEW_SLOT_MAX
];
45 struct registry_board
{
46 PublishedFileId_t workshop_id
;
48 /* only for steam workshop files */
49 struct workshop_file_info workshop
;
50 struct cache_board
*cache_ptr
;
52 char filename
[64]; /* if workshop, string version of its published ID. */
55 enum registry_board_state
{
56 k_registry_board_state_none
,
57 k_registry_board_state_indexed
,
58 k_registry_board_state_indexed_absent
/*was found but is now missing*/
63 u32 t1_registry_count
,
66 u32 selected_registry_id
;
69 struct registry_world
{
70 enum registry_board_state state
;
78 u32 t1_world_registry_count
,
82 static global_skateshop
;
84 VG_STATIC
void watch_cache_board( struct cache_board
*ptr
);
85 VG_STATIC
void unwatch_cache_board( struct cache_board
*ptr
);
87 #endif /* ENT_SKATESHOP_H */