#include "save.hpp" #include #include "dbc.hpp" #include #include "config.hpp" #include using namespace components; using namespace fmt; template inline void extract(DinkyECS::World &world, std::map &into) { auto from_world = world.entity_map_for(); for(auto [entity, value] : from_world) { into[entity] = std::any_cast(value); } } void save::to_file(fs::path path, DinkyECS::World &world, Map &map) { (void)path; (void)world; (void)map; } void save::from_file(fs::path path, DinkyECS::World &world_out, Map &map_out) { (void)path; (void)world_out; (void)map_out; } void save::load_configs(DinkyECS::World &world) { Config game("./assets/config.json"); Config enemies("./assets/enemies.json"); Config items("./assets/items.json"); Config tiles("./assets/tiles.json"); Config devices("./assets/devices.json"); Config bosses("./assets/bosses.json"); world.set_the({ game, enemies, items, tiles, devices, bosses }); }