Esempio n. 1
0
        public static TradeHouseDto Create(TradeHouse tradeHouse)
        {
            var goods = tradeHouse.Goods.Select(g => GoodDto.Create(g.Type))
                        .ToList();

            return(new TradeHouseDto {
                Goods = goods
            });
        }
Esempio n. 2
0
 public Trader(Game game) : base(game)
 {
     _tradeHouse = game.TradeHouse;
 }