From 6efbf7642c2344c3c8f4999cc557d8760e5287b0 Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Thu, 30 May 2024 15:17:35 +0200 Subject: [PATCH 2/2] terrain_enums.def: sort enum values alphabetically (by identifier) See RM #689 Signed-off-by: Alina Lenk --- gen_headers/enums/terrain_enums.def | 55 ++++++++++++++++------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/gen_headers/enums/terrain_enums.def b/gen_headers/enums/terrain_enums.def index 7a580dabd6..98b09aa0e9 100644 --- a/gen_headers/enums/terrain_enums.def +++ b/gen_headers/enums/terrain_enums.def @@ -5,6 +5,7 @@ enum terrain_class prefix TC_ count + style identifiers sorted values /* TRANS: terrain class: used adjectivally */ LAND N_("Land") @@ -20,20 +21,21 @@ end enum terrain_alteration prefix TA_ count + style identifiers sorted values - /* Can build irrigation without changing terrain */ + /* Can build military base */ /* TRANS: this and following strings may rarely be presented to the player * in ruleset help text, to denote the set of terrains which can be altered * in a particular way */ + CAN_BASE N_("CanBase") + /* Can build irrigation without changing terrain */ CAN_IRRIGATE N_("CanIrrigate") /* Can build mine without changing terrain */ CAN_MINE N_("CanMine") - /* Can build roads and/or railroads */ - CAN_ROAD N_("CanRoad") - /* Can build military base */ - CAN_BASE N_("CanBase") /* Can place extras with infrapoints */ CAN_PLACE N_("CanPlace") + /* Can build roads and/or railroads */ + CAN_ROAD N_("CanRoad") end /* Used in the network protocol. */ @@ -41,29 +43,31 @@ enum terrain_flag_id prefix TER_ name-override bitvector bv_terrain_flags + style identifiers sorted values - /* No barbarians summoned on this terrain. */ + /* Terrains with this type can have road with "River" flag on them. */ /* TRANS: this and following strings are 'terrain flags', which may rarely * be presented to the player in ruleset help text */ - NO_BARBS N_("NoBarbs") - /* No cities on this terrain. */ - NO_CITIES N_("NoCities") - /* Players will start on this terrain type. */ - STARTER N_("Starter") - /* Terrains with this type can have road with "River" flag on them. */ CAN_HAVE_RIVER N_("CanHaveRiver") - /* this tile is not safe as coast, (all ocean / ice) */ - UNSAFE_COAST N_("UnsafeCoast") + /* Borders on this terrain are not blocking unit movement */ + ENTER_BORDERS N_("EnterBorders") /* Fresh water terrain */ FRESHWATER N_("FreshWater") + /* Ice-covered terrain (affects minimap) */ + FROZEN N_("Frozen") /* Map generator does not place this terrain */ NOT_GENERATED N_("NotGenerated") + /* No barbarians summoned on this terrain. */ + NO_BARBS N_("NoBarbs") + /* No cities on this terrain. */ + NO_CITIES N_("NoCities") /* Units on this terrain are not generating or subject to zoc */ NO_ZOC N_("NoZoc") - /* Borders on this terrain are not blocking unit movement */ - ENTER_BORDERS N_("EnterBorders") - /* Ice-covered terrain (affects minimap) */ - FROZEN N_("Frozen") + /* Players will start on this terrain type. */ + STARTER N_("Starter") + /* this tile is not safe as coast, (all ocean / ice) */ + UNSAFE_COAST N_("UnsafeCoast") + USER_1 USER_2 USER_3 @@ -79,15 +83,16 @@ end enum mapgen_terrain_property prefix MG_ count + style identifiers sorted values - MOUNTAINOUS "mountainous" - GREEN "green" - FOLIAGE "foliage" - TROPICAL "tropical" - TEMPERATE "temperate" COLD "cold" - FROZEN "frozen" - WET "wet" DRY "dry" + FOLIAGE "foliage" + FROZEN "frozen" + GREEN "green" + MOUNTAINOUS "mountainous" OCEAN_DEPTH "ocean_depth" + TEMPERATE "temperate" + TROPICAL "tropical" + WET "wet" end -- 2.34.1