Пример #1
0
 public static void HandleSelectedServerDataMessage(Bot bot, SelectedServerDataMessage message)
 {
     bot.ClientInformations.Update(message);
 }
Пример #2
0
        private void HandleSelectedServerDataMessage(Bot bot, SelectedServerDataMessage message)
        {
            m_tickets.Add(message.ticket, Tuple.Create((BotMITM)bot, new SelectedServerDataMessage(message.serverId, message.address, message.port, message.canCreateNewCharacter, message.ticket)));

            message.address = m_configuration.FakeWorldHost;
            message.port = (ushort) m_configuration.FakeWorldPort;

            ( (BotMITM)bot ).ExpectedDisconnection = true;

            logger.Debug("Client redirected to {0}:{1}", message.address, message.port);
        }
Пример #3
0
 public void Update(SelectedServerDataMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     SelectedServer = Singleton<DataProvider>.Instance.Get<Server>(msg.serverId);
     ConnectionTicket = msg.ticket;
     ServerAddress = msg.address;
     ServerPort = msg.port;
     CanCreateNewCharacter = msg.canCreateNewCharacter;
 }