diff options
Diffstat (limited to 'asset.hpp')
-rw-r--r-- | asset.hpp | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -7,7 +7,6 @@ struct Pack_File; struct Pack; struct Asset { - Asset* next; Asset_Loader* loader; }; @@ -19,13 +18,19 @@ struct Asset_Loader { struct Asset_Arena { Pack* p; Arena* a, * s; - Asset* assets; - - void init(Arena* arena, const char* pack_name); + struct Bucket { + char* name; + Asset* asset; + }; + Bucket* assets; + int max_assets; + + void init(Arena* arena, const char* pack_name, int max); void destroy(); Asset* load(const char* name); - void claim(Asset* a); + + int bucket(const char* name); }; void register_asset_loader( |