#pragma once #include #include #include #include #include "constants.h" namespace cursebreaker { struct ShopItem { uint16_t itemId{}; uint16_t price{}; uint16_t stock{}; // -1 for unlimited uint16_t levelRequired{}; }; struct Shop { uint16_t id{}; std::string name; std::string description; std::string location; std::vector inventory; Shop() = default; }; // Shops configuration functions bool loadShopsFromXML(const std::string& filepath, std::unordered_map& shops); const Shop* getShopById(uint16_t id, const std::unordered_map& shops); const std::unordered_map& getAllShops(const std::unordered_map& shops); } // namespace cursebreaker