示例#1
0
 private void HandleGameFightHumanReadyStateMessage(IAccount account, GameFightHumanReadyStateMessage message)
 {
     if (message.CharacterId == Account.Character.Id)
     {
         WaitForReady = !message.IsReady;
     }
 }
 public void HandleGameFightHumanReadyStateMessage(Bot bot, GameFightHumanReadyStateMessage message)
 {
     if (bot == null || bot.Character == null || bot.Character.Fight == null)
     {
         logger.Error("Fight is not properly initialized.");
         return; // Can't handle the message
     }
     bot.Character.Fight.Update(message);
 }
示例#3
0
        public void Update(GameFightHumanReadyStateMessage msg)
        {
            if (msg == null)
            {
                throw new ArgumentNullException("msg");
            }
            Fighter fighter = GetFighter(msg.characterId);

            fighter.IsReady = msg.isReady;
        }
示例#4
0
 public static void HandleGameFightHumanReadyStateMessage(Bot bot, GameFightHumanReadyStateMessage message)
 {
     if (!bot.Character.IsFighting())
     {
         logger.Error("Received GameFightHumanReadyStateMessage but character is not in fight !");
     }
     else
     {
         bot.Character.Fight.Update(message);
     }
 }
示例#5
0
        public static void GameFightHumanReadyStateMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameFightHumanReadyStateMessage msg = (GameFightHumanReadyStateMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (msg.characterId == account.CharacterBaseInformations.id)
            {
                account.FightData.WaitForReady = !msg.isReady;
            }
        }
示例#6
0
 private void GameFightHumanReadyStateMessageHandler(DofusClient client, GameFightHumanReadyStateMessage message)
 {
     //
 }