/tg/ Station 13 - Modules - TypesVar Details - Proc Details

asset

Vars

cross_round_cachableWhether 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.
earlyWhether or not this asset should be loaded in the "early assets" SS

Procs

ensure_readyStub that allows us to react to something trying to get us Not useful here, more handy for sprite sheets
get_serialized_url_mappingsReturns a cached tgui message of URL mappings
queued_generationStub to hook into if your asset is having its generation queued by SSasset_loading
should_refreshReturns 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.

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

should_refresh

Returns whether or not the asset should attempt to read from cache