asset
Vars | |
cross_round_cachable | Whether or not this asset can be cached across rounds of the same commit under the CACHE_ASSETS config.
This is not a guarantee the asset will be cached. Not all asset subtypes respect this field, and the
config can, of course, be disabled.
Disable this if your asset can change between rounds on the same exact version of the code. |
---|---|
early | Whether or not this asset should be loaded in the "early assets" SS |
Procs | |
ensure_ready | Stub that allows us to react to something trying to get us Not useful here, more handy for sprite sheets |
get_serialized_url_mappings | Returns a cached tgui message of URL mappings |
queued_generation | Stub to hook into if your asset is having its generation queued by SSasset_loading |
save_to_logs | Simply takes any generated file and saves it to the round-specific /logs folder. Useful for debugging potential issues with spritesheet generation/display. Only called when the SAVE_SPRITESHEETS config option is uncommented. |
should_refresh | Returns whether or not the asset should attempt to read from cache |
Var Details
cross_round_cachable
Whether or not this asset can be cached across rounds of the same commit under the CACHE_ASSETS
config.
This is not a guarantee the asset will be cached. Not all asset subtypes respect this field, and the
config can, of course, be disabled.
Disable this if your asset can change between rounds on the same exact version of the code.
early
Whether or not this asset should be loaded in the "early assets" SS
Proc Details
ensure_ready
Stub that allows us to react to something trying to get us Not useful here, more handy for sprite sheets
get_serialized_url_mappings
Returns a cached tgui message of URL mappings
queued_generation
Stub to hook into if your asset is having its generation queued by SSasset_loading
save_to_logs
Simply takes any generated file and saves it to the round-specific /logs folder. Useful for debugging potential issues with spritesheet generation/display. Only called when the SAVE_SPRITESHEETS config option is uncommented.
should_refresh
Returns whether or not the asset should attempt to read from cache