mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 10:07:17 +01:00
refactors the asset subsystem to make it much more managed adds support for 'deferred' assets for tgui, which will be later used for things like tgui character setup and admin panels. deferred means that it'll be 'sent in a timely manner after the ui opens', as opposed to 'sent before the ui opens' --------- Co-authored-by: silicons <no@you.cat>
16 lines
374 B
Plaintext
16 lines
374 B
Plaintext
/datum/asset_pack/spritesheet/simple
|
|
abstract_type = /datum/asset_pack/spritesheet/simple
|
|
/**
|
|
* key = value list of icon_state = icon
|
|
*
|
|
* e.g.
|
|
* "enzyme" = 'icons/runtime/assets/condiments/enzyme.png'
|
|
*
|
|
* keys must be unique, obviously.
|
|
*/
|
|
var/list/assets
|
|
|
|
/datum/asset_pack/spritesheet/simple/generate()
|
|
for (var/key in assets)
|
|
insert(key, assets[key])
|