public void Update(GameFightUpdateTeamMessage message) { if (_account.State == AccountStates.FIGHTING && message.Team.LeaderId == _account.Game.Character.Id && FightId == 0) { FightId = message.FightId; FightIdReceived?.Invoke(); } }
public void Update(GameFightUpdateTeamMessage msg) { if (msg == null) { throw new ArgumentNullException("msg"); } Id = msg.fightId; GetTeam(msg.team.teamId).Update(msg.team); }
public void Update() { var msg = new GameFightUpdateTeamMessage((short)Fight.Id, GetFightTeamInformations()); Fight.Send(msg); if (Fight.ShowBlades && !Fight.Started) { Fight.Map.Instance.Send(msg); } }
public static void HandleGameFightUpdateTeamMessage(Bot bot, GameFightUpdateTeamMessage message) { if (!bot.Character.IsFighting()) { logger.Error("Received GameFightUpdateTeamMessage but character is not in fight !"); } else { bot.Character.Fight.Update(message); } }
public void HandleGameFightUpdateTeamMessage(Bot bot, GameFightUpdateTeamMessage message) { if (bot == null || bot.Character == null || bot.Character.Fight == null) { logger.Error("Fight is not properly initialized."); return; // Can't handle the message } if (bot.Character.Fight.Id == message.fightId) { bot.Character.Fight.Update(message); } }
public static Task HandleGameFightUpdateTeamMessage(Account account, GameFightUpdateTeamMessage message) => Task.Run(() => account.Game.Fight.Update(message));
private void GameFightUpdateTeamMessageHandler(DofusClient client, GameFightUpdateTeamMessage message) { // }