/tg/ Station 13 - Modules - Types

modular_aphelion/modules/cyborg_customization/code/preview.dm

/datum/asset/cyborg_model_galleryPublic stock artwork is encoded once per catalog generation, independently of private layouts. Keep file resources and small indexes, not duplicate JSON lists.
/proc/cyborg_preview_bodyBody previews use immutable resources, never world mobs. A bounded FIFO caches PNGs.
/proc/cyborg_preview_referenceExisting one-tile mannequin artwork, fixed at normal body scale in the frontend.
/proc/cyborg_preview_animationA bounded frame sequence for the visible model only. No periodic server UI updates.
/proc/cyborg_preview_layersReturns the editor preview's part layers without their art, placed as the live renderer places them.