| 764 | static JsonIn submap_cosmetic( submap_cosmetic_ss ); |
| 765 | |
| 766 | static void load_from_jsin( submap &sm, JsonIn &jsin ) |
| 767 | { |
| 768 | // Ensure that the JSON is up to date for our savegame version |
| 769 | REQUIRE( savegame_version == 33 ); |
| 770 | jsin.start_object(); |
| 771 | int version = 0; |
| 772 | while( !jsin.end_object() ) { |
| 773 | std::string name = jsin.get_member_name(); |
| 774 | if( name == "version" ) { |
| 775 | version = jsin.get_int(); |
| 776 | } else { |
| 777 | sm.load( jsin, name, version ); |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | struct submap_checks { |
| 783 | bool terrain = true; |
no test coverage detected