#pragma once #include #include #include "Item.h" namespace FRG { class ItemRegistry { public: static ItemRegistry& instance(); void loadFromJson(const std::string& jsonPath, const std::string& zipPath = ""); // Returns nullptr if not found. const Item* findById(const std::string& id) const; private: ItemRegistry() = default; std::unordered_map items_; }; } // namespace FRG