import { composeAppearanceLayers, bodySpriteName } from "./hair.js"; export { bodySpriteName } from "./hair.js"; /** Build public draw layers from sex + bag equipment + hair (no ECS). */ export function layersFromBag (sex, bag, hair = null) { const appearance = { sex, sprite: bodySpriteName(sex), hairStyle: hair?.style ?? null, hairHue: hair?.hue, hairSaturation: hair?.saturation, hairDarkness: hair?.darkness, hairColor: hair?.color ?? null }; return composeAppearanceLayers(appearance, bag?.equipment?.slots ?? {}); }