diff options
author | Hop311 <hop3114@gmail.com> | 2023-04-08 01:23:43 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-04-08 01:23:43 +0200 |
commit | d8a747ad3cc643a2320d798646d7c0f74c1babb1 (patch) | |
tree | 1fddf96cb5b8130b18bc2bb013dbb6926d3a889f /extension/src/MapSingleton.hpp | |
parent | 246d1952e273557e432f4fa2fc86b7c48aa79a0c (diff) |
Region loading and mapmode.
Diffstat (limited to 'extension/src/MapSingleton.hpp')
-rw-r--r-- | extension/src/MapSingleton.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extension/src/MapSingleton.hpp b/extension/src/MapSingleton.hpp index bb34201..d0f4dc3 100644 --- a/extension/src/MapSingleton.hpp +++ b/extension/src/MapSingleton.hpp @@ -15,6 +15,8 @@ namespace OpenVic2 { int32_t width = 0, height = 0; Map map; + godot::Error _parse_province_identifier_entry(godot::String const& identifier, godot::Variant const& entry); + godot::Error _parse_region_entry(godot::String const& identifier, godot::Variant const& entry); protected: static void _bind_methods(); @@ -25,6 +27,7 @@ namespace OpenVic2 { ~MapSingleton(); godot::Error load_province_identifier_file(godot::String const& file_path); + godot::Error load_region_file(godot::String const& file_path); godot::Error load_province_shape_file(godot::String const& file_path); godot::String get_province_identifier_from_pixel_coords(godot::Vector2i const& coords) const; int32_t get_width() const; |