diff options
author | Wolfgang Aigner <wolfgang.aigner@yahoo.de> | 2023-04-06 17:10:13 +0200 |
---|---|---|
committer | Wolfgang Aigner <wolfgang.aigner@yahoo.de> | 2023-04-06 17:42:27 +0200 |
commit | 383583733b2f4cd8c5e632c160afdb987b8615af (patch) | |
tree | 2425f372a655e8f87bc5d0d55663daa53141d615 /extension/src/openvic2/LoadGoods.hpp | |
parent | 0c110a5de255d7fbddf77b549cf019dcfef88751 (diff) |
Basic loading of goods defined in goods.json
Diffstat (limited to 'extension/src/openvic2/LoadGoods.hpp')
-rw-r--r-- | extension/src/openvic2/LoadGoods.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extension/src/openvic2/LoadGoods.hpp b/extension/src/openvic2/LoadGoods.hpp new file mode 100644 index 0000000..41dd75e --- /dev/null +++ b/extension/src/openvic2/LoadGoods.hpp @@ -0,0 +1,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); + }; +}
\ No newline at end of file |