示例#1
0
        private Noble BuildNobleCard(string[] parameters)
        {
            var prestige = uint.Parse(parameters[0]);
            var diamondDevelopmentPrice  = uint.Parse(parameters[1]);
            var rubyDevelopmentPrice     = uint.Parse(parameters[2]);
            var emeraldDevelopmentPrice  = uint.Parse(parameters[3]);
            var onyxDevelopmentPrice     = uint.Parse(parameters[4]);
            var sapphireDevelopmentPrice = uint.Parse(parameters[5]);

            var cost = new NobleCost(new TokenCollection(diamondDevelopmentPrice, onyxDevelopmentPrice, sapphireDevelopmentPrice, emeraldDevelopmentPrice, rubyDevelopmentPrice));

            return(new Noble(prestige, cost));
        }
示例#2
0
 public Noble(uint prestige, NobleCost cost)
 {
     Requirements  = cost;
     this.Prestige = prestige;
 }