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

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

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

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