#ifndef WATCH_RESOURCE_MAP_H
#define WATCH_RESOURCE_MAP_H

#include <stdint.h>

#include "../../../engine/src/tarot.h"

/* Maps a TarotCard to its compiled-in bitmap resource ID. Each of
 * watch/package.json's "resources.media" entries is named
 * IMG_CARD_<SLUG UPPERCASE>, matching engine/src/tarot_data.c's own
 * k_card_slug table (see watch/scripts/gen_card_images.py, which
 * generates the underlying PNGs with the same slugs) - Pebble's build
 * turns each into a RESOURCE_ID_IMG_CARD_<SLUG> macro in the
 * auto-generated resource_ids.auto.h, which this function is the one
 * place in the app that switches over. */
uint32_t card_resource_id(TarotCard card);

/* Height in pixels of a card image resized to `width` wide, preserving
 * the source art's fixed 1086x1810 aspect ratio - matches
 * gen_card_images.py's own resize math, so this stays correct for
 * whichever per-platform width variant package.json resolves to. */
int16_t card_image_height_for_width(int16_t width);

#endif
