Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public SpUpdateTrade(Player player, ShoppingCart shoppingCart)
 {
     ShoppingCart = shoppingCart;
     Player = player;
 }