public Manifest(Manifest copy) { trades = new List<Trade>(); foreach (Trade trade in copy.Trades) this.trades.Add(new Trade(trade)); this.capital = copy.capital; this.cargoSlots = copy.cargoSlots; this.limitingFactor = copy.limitingFactor; }
public bool Equals(Manifest compareTo) { if (trades.Count != compareTo.trades.Count || capital != compareTo.Capital || cargoSlots != compareTo.cargoSlots || limitingFactor != compareTo.limitingFactor || Investment != compareTo.Investment || Profit != compareTo.Profit) return false; return true; }