public TradeController(Player player, Tradelist tradelist) { Player = player; Tradelist = tradelist; Cart = new ShoppingCart(); new SpTradeList(Tradelist).Send(Player.Connection); new SpUpdateTrade(Player, Cart).Send(Player.Connection); new SpInventory(player, true).Send(Player.Connection); SystemMessages.TradeHasBegun.Send(Player.Connection); }
public SpUpdateTrade(Player player, ShoppingCart shoppingCart) { ShoppingCart = shoppingCart; Player = player; }