Ejemplo n.º 1
0
 private void HandleExchangeIsReadyMessage(IAccount account, ExchangeIsReadyMessage message)
 {
     if (message.Ready)
     {
         Logger.Default.Log("Le joueur a accepté son échange", LogMessageType.Info);
     }
 }
Ejemplo n.º 2
0
 private void ExchangeIsReadyMessageHandler(DofusClient client, ExchangeIsReadyMessage message)
 {
     if (message.Ready)
     {
         client.Logger.Log("Le joueur a accepté son échange", LogMessageType.Info);
     }
 }
Ejemplo n.º 3
0
 public void Update(ExchangeIsReadyMessage message)
 {
     if (message.Id == _account.Game.Character.Id)
     {
         IsReady = true;
     }
     else
     {
         RemoteIsReady = true;
         RemoteReady?.Invoke();
     }
 }
Ejemplo n.º 4
0
        public static void ExchangeIsReadyMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            ExchangeIsReadyMessage msg = (ExchangeIsReadyMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (msg.Ready && account.GestItemsUC.ListenerBox.Checked)
            {
                account.Inventory.ExchangeReady();
            }
        }
Ejemplo n.º 5
0
 public static Task HandleExchangeIsReadyMessage(Account account, ExchangeIsReadyMessage message)
 => Task.Run(() => account.Game.Exchange.Update(message));