You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
557 B
22 lines
557 B
#include "save.hpp"
|
|
#include <fstream>
|
|
#include "dbc.hpp"
|
|
#include <fmt/core.h>
|
|
#include "config.hpp"
|
|
#include <filesystem>
|
|
|
|
using namespace components;
|
|
using namespace fmt;
|
|
|
|
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<GameConfig>({
|
|
game, enemies, items, tiles, devices, bosses
|
|
});
|
|
}
|
|
|