forked from ParadoxGameConverters/commonItems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BulkParser.h
25 lines (22 loc) · 818 Bytes
/
BulkParser.h
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
#ifndef BULK_PARSER_H
#define BULK_PARSER_H
#include "ModLoader/ModFilesystem.h"
#include "Parser.h"
// Bulk-parsing entire files and folders across incoming modFilesystem.
namespace commonItems
{
class bulkParser: public parser
{
public:
// Parses a game file in either vanilla game or mods directory.
// For example:
// relativePath may be "map_data/areas.txt"
void ParseGameFile(const std::string& relative_path, const ModFilesystem& mod_fs);
// Parses a game folder in both vanilla game and mods directory.
// For example:
// relativePath may be "common/governments"
// extensions may be "txt", "text"
void ParseGameFolder(const std::string& relative_path, const ModFilesystem& mod_fs, const std::set<std::string>& extensions, bool recursive);
};
} // namespace commonItems
#endif // BULK_PARSER_H