示例#1
0
        public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            //account.Fight.PerformAutoTimeoutFight(100);
            if (account.Fight != null)
            {
                account.Fight.FightTurn();
            }
        }
示例#2
0
        public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            account.FightData.TurnStarted();
            if (account.Fight != null)
            {
                account.Fight.flag = 1;
                account.Fight.ExecutePlan();
            }
            else
            {
                account.Log(new ErrorTextInformation("Aucune IA, le bot ne peut pas combattre !"), 0);
            }
        }
示例#3
0
 private void HandleGameFightTurnStartPlayingMessage(IAccount account, GameFightTurnStartPlayingMessage message)
 {
     TurnStarted?.Invoke();
 }
示例#4
0
 private void HandleMapComplementaryInformationsDataMessage(GameFightTurnStartPlayingMessage message, ConnectedHost source)
 {
     IA.SpellsLauncher.StartFight();
 }
示例#5
0
 private void GameFightTurnStartPlayingMessageHandler(DofusClient client,
                                                      GameFightTurnStartPlayingMessage message)
 {
     //
 }