From b5e38451de86c6cacce8b2d4580fe24c282f7279 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sun, 23 Jun 2019 18:35:11 +0200 Subject: [PATCH] Modified Flat detection options --- plugins/embark-assistant/defs.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/plugins/embark-assistant/defs.h b/plugins/embark-assistant/defs.h index f7a9ed680..46ef75041 100644 --- a/plugins/embark-assistant/defs.h +++ b/plugins/embark-assistant/defs.h @@ -23,6 +23,12 @@ namespace embark_assist { Major }; + enum class flatnesses { + Flat_Verified, + Mostly_Flat, + Uneven + }; + struct mid_level_tile { bool aquifer = false; bool clay = false; @@ -111,7 +117,7 @@ namespace embark_assist { bool aquifer_full; uint8_t min_soil; uint8_t max_soil; - bool flat; + flatnesses flatness; bool waterfall; bool clay; bool sand; @@ -174,6 +180,13 @@ namespace embark_assist { Major }; + enum class flatness_ranges : int8_t { + NA = -1, + Flat_Verified, + Mostly_Flat, + Uneven + }; + // For possible future use. That's the level of data actually collected. // enum class adamantine_ranges : int8_t { // NA = -1, @@ -253,7 +266,7 @@ namespace embark_assist { river_ranges min_river; river_ranges max_river; yes_no_ranges waterfall; - yes_no_ranges flat; + flatness_ranges flatness; present_absent_ranges clay; present_absent_ranges sand; present_absent_ranges flux;