Beispiel #1
0
        /// <summary>
        /// Client wants to deselect the character and return to the character selection screen.
        /// </summary>
        /// <param name="packet"></param>
        void OnDeselectCharacter(PacketReader packet)
        {
            if (!IsAuthenticated)
            {
                return;
            }

            Character = null;
            Server.Database.AssignCharacterToSession(Key, null);

            Send(PacketGenerator.CharacterDeselect(0));
        }