aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/LoadGoods.hpp
blob: 41dd75e47f4f1118d9a52d16884fcb24a44f0f4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <godot_cpp/classes/object.hpp>
#include <vector>
#include "Good.hpp"

namespace OpenVic2 {
   class LoadGoods {
      private:
         static bool extract_property_from_json(const godot::Variant& variant, std::vector<Good>& goods, int32_t index);

      public:
         static std::vector<Good> load_goods_from_disk(godot::String const& file_path);
   };
}