1 #ifndef ENT_SKATESHOP_H
2 #define ENT_SKATESHOP_H
5 #include "world_load.h"
7 #include "vg/vg_steam_remote_storage.h"
11 #define SKATESHOP_BOARD_CACHE_MAX 10
12 #define SKATESHOP_VIEW_SLOT_MAX 6
16 ent_skateshop
*ptr_ent
;
22 enum cache_board_state
{
23 k_cache_board_state_none
,
24 k_cache_board_state_loaded
,
25 k_cache_board_state_load_request
29 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 u32 selected_world_id
,
50 const char *item_title
, *item_desc
;
53 const char *world_title
, *world_loc
;
58 static global_skateshop
={.render
={.reg_id
=0xffffffff,.world_reg
=0xffffffff}};
60 VG_STATIC
void global_skateshop_exit(void);
61 VG_STATIC
void watch_cache_board( struct cache_board
*ptr
);
62 VG_STATIC
void unwatch_cache_board( struct cache_board
*ptr
);
64 #endif /* ENT_SKATESHOP_H */