A retro style homage to 80s dungeon crawlers hand crafted in C++.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#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");
|
|
|
|
Config rituals("./assets/rituals.json");
|
|
|
|
|
|
|
|
world.set_the<GameConfig>({
|
|
|
|
game, enemies, items, tiles, devices, bosses, rituals
|
|
|
|
});
|
|
|
|
}
|