Esempio n. 1
0
        /// <summary>
        /// Handles the GameLogonRequestIn packet. This packet is sent to us when we first connect
        /// to the game server. We reply with a logon request and a ping
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void OnRequestLogonInfo(GameServerPacket packet)
        {
            GameLogonRequestOut toServer = new GameLogonRequestOut(
                gameServerArgs.GameHash,
                gameServerArgs.GameToken,
                settings.ClientVersion,
                (byte)gameServerArgs.CharacterClass,
                gameServerArgs.CharacterName
                );

            SendPacket(toServer);
            SendPing();
        }
Esempio n. 2
0
        /// <summary>
        /// Handles the GameLogonRequestIn packet. This packet is sent to us when we first connect
        /// to the game server. We reply with a logon request and a ping
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void OnRequestLogonInfo(GameServerPacket packet)
        {
            GameLogonRequestOut toServer = new GameLogonRequestOut(
                gameServerArgs.GameHash,
                gameServerArgs.GameToken,
                settings.ClientVersion,
                (byte)gameServerArgs.CharacterClass,
                gameServerArgs.CharacterName
            );

            SendPacket(toServer);
            SendPing();
        }