diff options
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..38b8c7b --- /dev/null +++ b/extension/src/openvic2/LoadGoods.hpp @@ -0,0 +1,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); + }; +}
\ No newline at end of file |