Exemple #1
0
        public Leader(IList <string> data, string leadertype, Civilization civ)
        {
            Civilization = civ;
            if (!LeaderTypes.Contains(leadertype))
            {
                LeaderTypes.Add(leadertype);
            }
            LeaderType = LeaderTypes.IndexOf(leadertype);

            ParseNameLine(data[0].Trim());
            ParseChildrenLine(data[1].Trim());
            if (data.Count == 3)
            {
                ParseWorshipLine(data[2].Trim());
            }
        }