コード例 #1
0
        public static void OnTradeCancel(WorldClient client, INetPacketStream packet)
        {
            var tradePacket = new TradeCancelPacket(packet);
            var tradeEvent  = new TradeCancelEventArgs(tradePacket.Mode);

            client.Player.NotifySystem <TradeSystem>(tradeEvent);
        }
コード例 #2
0
 public void OnTradeCancel(IWorldClient client, TradeCancelPacket packet)
 {
     _tradeSystem.CancelTrade(client.Player, packet.Mode);
 }