Ejemplo n.º 1
0
        /// <summary>
        /// Player wished to log into a city!
        /// </summary>
        /// <param name="button">The avatar button that was clicked.</param>
        public void AvatarButton_OnButtonClick(UIElement button)
        {
            PersonSlot PSlot  = m_PersonSlots.First(x => x.AvatarButton == button);
            UISim      Avatar = NetworkFacade.Avatars.First(x => x.Name == PSlot.PersonNameText.Caption);

            //This is important, the avatar contains ResidingCity, which is neccessary to
            //continue to CityTransitionScreen.
            PlayerAccount.CurrentlyActiveSim = Avatar;

            UIPacketSenders.RequestCityToken(NetworkFacade.Client, Avatar);
        }