forked from freeorion/freeorion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDummyParsers.cpp
95 lines (70 loc) · 3.69 KB
/
DummyParsers.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include "Parse.h"
#include "../util/GameRules.h"
#include "../universe/BuildingType.h"
#include "../universe/Encyclopedia.h"
#include "../universe/FieldType.h"
#include "../universe/FleetPlan.h"
#include "../Empire/Government.h"
#include "../universe/ShipDesign.h"
#include "../universe/ShipHull.h"
#include "../universe/ShipPart.h"
#include "../universe/Special.h"
#include "../universe/Species.h"
#include "../universe/Tech.h"
#include "../universe/UnlockableItem.h"
#include "../universe/ValueRef.h"
#include "PythonParser.h"
namespace parse {
std::map<std::string, std::unique_ptr<BuildingType>, std::less<>> buildings(const PythonParser& parser, const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::unique_ptr<FieldType>, std::less<>> fields(const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::unique_ptr<ValueRef::ValueRefBase>, std::less<>> named_value_refs(const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::unique_ptr<Special>, std::less<>> specials(const boost::filesystem::path& path)
{ return {}; }
template <>
std::vector<Policy> policies(const boost::filesystem::path& path)
{ return {}; }
species_type species(const PythonParser& parser, const boost::filesystem::path& path)
{ return {}; }
template <>
TechManager::TechParseTuple techs(const PythonParser& parser, const boost::filesystem::path& path)
{ return TechManager::TechParseTuple{}; }
std::vector<UnlockableItem> items(const boost::filesystem::path& path)
{ return {}; }
std::vector<UnlockableItem> starting_buildings(const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::unique_ptr<ShipPart>, std::less<>> ship_parts(const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::unique_ptr<ShipHull>, std::less<>> ship_hulls(const boost::filesystem::path& path)
{ return {}; }
ship_designs_type ship_designs(const boost::filesystem::path& path)
{ return {}; }
std::vector<std::unique_ptr<FleetPlan>> fleet_plans(const boost::filesystem::path& path)
{ return {}; }
std::vector<std::unique_ptr<MonsterFleetPlan>> monster_fleet_plans(const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::unique_ptr<ValueRef::ValueRef<double>>> statistics(const boost::filesystem::path& path)
{ return {}; }
std::map<std::string, std::vector<EncyclopediaArticle>, std::less<>> encyclopedia_articles(const boost::filesystem::path& path)
{ return {}; }
GameRulesTypeMap game_rules(const PythonParser& parser, const boost::filesystem::path& path)
{ return {}; }
void file_substitution(std::string& text, const boost::filesystem::path& file_search_path, const std::string& filename)
{}
void process_include_substitutions(std::string& text,
const boost::filesystem::path& file_search_path,
std::set<boost::filesystem::path>& files_included)
{}
bool int_free_variable(std::string& text) { return false; }
bool double_free_variable(std::string& text) { return false; }
bool string_free_variable(std::string& text) { return false; }
}
template FO_PARSE_API TechManager::TechParseTuple parse::techs<TechManager::TechParseTuple>(const PythonParser& parser, const boost::filesystem::path& path);
template FO_PARSE_API std::vector<Policy> parse::policies<std::vector<Policy>>(const boost::filesystem::path& path);
PythonParser::PythonParser(PythonCommon& _python, const boost::filesystem::path& scripting_dir) :
m_python(_python),
m_scripting_dir(scripting_dir)
{ }
PythonParser::~PythonParser() = default;