Пример #1
0
 public bool Contains(YieldSummary other)
 {
     return(Food >= other.Food &&
            Production >= other.Production &&
            Gold >= other.Gold &&
            Culture >= other.Culture &&
            Science >= other.Science &&
            GreatArtist >= other.GreatArtist &&
            GreatEngineer >= other.GreatEngineer &&
            GreatMerchant >= other.GreatMerchant &&
            GreatScientist >= other.GreatScientist);
 }
Пример #2
0
 public YieldSummary(YieldSummary other)
 {
     Food           = other.Food;
     Production     = other.Production;
     Gold           = other.Gold;
     Culture        = other.Culture;
     Science        = other.Science;
     GreatArtist    = other.GreatArtist;
     GreatEngineer  = other.GreatEngineer;
     GreatMerchant  = other.GreatMerchant;
     GreatScientist = other.GreatScientist;
 }