예제 #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);
        }
예제 #2
0
 public SpUpdateTrade(Player player, ShoppingCart shoppingCart)
 {
     ShoppingCart = shoppingCart;
     Player = player;
 }