Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
games_storage_config.h
1#ifndef CAVOKE_GAMES_STORAGE_CONFIG_H
2#define CAVOKE_GAMES_STORAGE_CONFIG_H
3
4#include <boost/filesystem/path.hpp>
5#include <nlohmann/json.hpp>
6#include "utils.h"
7namespace cavoke::server::model {
8using json = nlohmann::json;
9
11 boost::filesystem::path games_directory;
12 std::string logic_name;
13 std::string zip_name;
14 std::string config_name;
15
16 static GamesStorageConfig load(const std::string &config_file);
17};
18NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(GamesStorageConfig,
19 games_directory,
20 logic_name,
21 zip_name,
22 config_name)
23} // namespace cavoke::server::model
24#endif // CAVOKE_GAMES_STORAGE_CONFIG_H