1 #ifndef GAME_REGISTRY_HPP_INCLUDED 2 #define GAME_REGISTRY_HPP_INCLUDED 3 4 #include "formula_callable.hpp" 5 #include "variant.hpp" 6 7 class game_registry : public game_logic::formula_callable { 8 public: 9 static game_registry& instance(); 10 void set_contents(variant node); 11 variant write_contents(); 12 private: 13 game_registry(); 14 variant get_value(const std::string& key) const; 15 void set_value(const std::string& key, const variant& value); 16 17 variant values_; 18 }; 19 20 #endif 21