aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/dataloader/Dataloader.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-07 00:54:09 +0200
committer Hop311 <hop3114@gmail.com>2023-09-07 20:37:24 +0200
commit3cd1d62ec00690a1b29070dd4903754e8f089a21 (patch)
tree61d630aa130f8411cc0d539dbfb3705154740631 /src/openvic/dataloader/Dataloader.hpp
parent8e12540771f1fcc670481aa6299fd73cb10aad00 (diff)
NodeTools cleanup+province definition csv loading
Diffstat (limited to 'src/openvic/dataloader/Dataloader.hpp')
-rw-r--r--src/openvic/dataloader/Dataloader.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/openvic/dataloader/Dataloader.hpp b/src/openvic/dataloader/Dataloader.hpp
index 3c868a3..9e5c24b 100644
--- a/src/openvic/dataloader/Dataloader.hpp
+++ b/src/openvic/dataloader/Dataloader.hpp
@@ -1,22 +1,21 @@
#pragma once
#include <filesystem>
+#include <functional>
+#include <vector>
#include "openvic/types/Return.hpp"
-#include "openvic-dataloader/v2script/Parser.hpp"
-
namespace OpenVic {
struct GameManager;
struct PopManager;
+ struct Map;
class Dataloader {
std::vector<std::filesystem::path> roots;
- static ovdl::v2script::Parser parse_defines(std::filesystem::path const& path);
- ovdl::v2script::Parser parse_defines_lookup(std::filesystem::path const& path) const;
-
return_t _load_pop_types(PopManager& pop_manager, std::filesystem::path const& pop_type_directory) const;
+ return_t _load_map_dir(Map& map, std::filesystem::path const& map_directory) const;
public:
Dataloader() = default;