aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/input/json-parsing/rules_parser.h
blob: fdfe01822ff3917606c402e08a6ce0414e6530c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Created by thecharlesblake on 1/3/18.
//

#ifndef SOLVITAIRE_RULES_PARSER_H
#define SOLVITAIRE_RULES_PARSER_H

#include "../../../game/sol_rules.h"

class rules_parser {
public:
    static const sol_rules from_file(std::string);
    static const sol_rules from_preset(std::string);
    static std::string rules_schema_json();

private:
    static sol_rules get_default();
    static void modify_sol_rules(sol_rules&, rapidjson::Document&);
};


#endif //SOLVITAIRE_RULES_PARSER_H