Skip to content

Commit

Permalink
Team: reformatted list of allowed [side] keys
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent 78d1ba4 commit 4d580b4
Showing 1 changed file with 59 additions and 13 deletions.
72 changes: 59 additions & 13 deletions src/team.cpp
Expand Up @@ -51,21 +51,67 @@ const int team::default_team_gold_ = 100;

// Update this list of attributes if you change what is used to define a side
// (excluding those attributes used to define the side's leader).
const std::set<std::string> team::attributes {"ai_config",
"carryover_add", "carryover_percentage", "color", "controller", "current_player", "defeat_condition", "flag",
"flag_icon", "fog", "fog_data", "gold", "hidden", "income",
"no_leader", "objectives", "objectives_changed", "persistent", "lost",
"recall_cost", "recruit", "save_id", "scroll_to_leader",
"share_vision", "share_maps" ,"share_view", "shroud", "shroud_data", "start_gold",
const std::set<std::string> team::attributes {
"ai_config",
"carryover_add",
"carryover_percentage",
"color",
"controller",
"current_player",
"defeat_condition",
"flag",
"flag_icon",
"fog",
"fog_data",
"gold",
"hidden",
"income",
"no_leader",
"objectives",
"objectives_changed",
"persistent",
"lost",
"recall_cost",
"recruit",
"save_id",
"scroll_to_leader",
"share_vision",
"share_maps",
"share_view",
"shroud",
"shroud_data",
"start_gold",
"suppress_end_turn_confirmation",
"team_name", "user_team_name", "side_name", "village_gold", "village_support", "is_local",
"team_name",
"user_team_name",
"side_name",
"village_gold",
"village_support",
"is_local",
// Multiplayer attributes.
"player_id", "is_host","action_bonus_count", "allow_changes", "allow_player", "color_lock",
"countdown_time", "disallow_observers", "faction",
"faction_from_recruit", "faction_name", "gold_lock", "income_lock",
"leader", "random_leader", "team_lock", "terrain_liked",
"user_description", "controller_lock", "chose_random",
"disallow_shuffle", "description"};
"player_id",
"is_host",
"action_bonus_count",
"allow_changes",
"allow_player",
"color_lock",
"countdown_time",
"disallow_observers",
"faction",
"faction_from_recruit",
"faction_name",
"gold_lock",
"income_lock",
"leader",
"random_leader",
"team_lock",
"terrain_liked",
"user_description",
"controller_lock",
"chose_random",
"disallow_shuffle",
"description"
};

team::team_info::team_info() :
gold(0),
Expand Down

0 comments on commit 4d580b4

Please sign in to comment.