public static void OnTradeCancel(WorldClient client, INetPacketStream packet) { var tradePacket = new TradeCancelPacket(packet); var tradeEvent = new TradeCancelEventArgs(tradePacket.Mode); client.Player.NotifySystem <TradeSystem>(tradeEvent); }
public void OnTradeCancel(IWorldClient client, TradeCancelPacket packet) { _tradeSystem.CancelTrade(client.Player, packet.Mode); }