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); }
public void Update(GameFightHumanReadyStateMessage msg) { if (msg == null) { throw new ArgumentNullException("msg"); } Fighter fighter = GetFighter(msg.characterId); fighter.IsReady = msg.isReady; }
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); } }
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; } }
private void GameFightHumanReadyStateMessageHandler(DofusClient client, GameFightHumanReadyStateMessage message) { // }