Beispiel #1
0
        /// <summary>
        /// Information for parameters at: <see cref="PlayerInfo"/>
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public async void CreatePlayerInfoTimer_Tick(object sender, EventArgs e)
        {
            ((Timer)sender).Enabled = false;
            ((Timer)sender).Dispose();
            //-----------------------------------------------
            PlayerName          = Username;                                  // 1
            PlayerLevel         = 0;                                         // 2
            PlayerLVLRanking    = 0;                                         // 3
            PlayerPowerRanking  = 0;                                         // 4
            PlayerGuildName     = NotSetString;                              // 5
            GuildPosition       = GuildPosition.NotJoined;                   // 6
            LastSeen            = ThereIsConstants.AppSettings.GlobalTiming; // 7
            PlayerPower         = new Unit(0);                               // 8
            PlayerIntro         = NotSetString;                              // 9
            PlayerAvatar        = Avatar.GetDefaultAvatar();                 // 10
            PlayerAvatarFrame   = AvatarFrame.GetDefaultAvatarFrame();       // 11
            PlayerVIPlvl        = 0;                                         // 12
            PlayerCurrentExp    = Unit.GetBasicUnit();                       // 13
            PlayerTotalExp      = Unit.GetBasicUnit();                       // 14
            PlayerCurrentVIPExp = Unit.GetBasicUnit();                       // 15
            ThePlayerElement    = PlayerElement.NotSet;                      // 16
            PlayerKingdom       = SAO_Kingdoms.NotSet;                       // 17
            SocialPosition      = SocialPosition.GetSocialPosition();        // 18
            //-----------------------------------------------
            var targetFile = Username + FileEndName;
            await ThereIsServer.Actions.CreateFile(ThereIsServer.ServersInfo.MyServers[0],
                                                   targetFile,
                                                   new DataBaseCreation("Testing for Creating",
                                                                        QString.Parse(PlayerInfoGetForServer())));

            //------------------------------------------------------
            StrongString myString = string.Empty;

#pragma warning disable IDE0059
            SecuredMe Hi = new SecuredMe(ref myString);
#pragma warning restore IDE0059
            await ThereIsServer.Actions.CreateFile(ThereIsServer.ServersInfo.MyServers[0],
                                                   Username + ThereIsServer.ServersInfo.EndCheckingFileName,
                                                   new DataBaseCreation("ReCreatedBySAO", QString.Parse(myString)));

            //------------------------------------------------------



            ((CreateProfileSandBox)ThereIsConstants.Forming.TheMainForm.ShowingSandBox).IsCreatingEnded1 = true;
            IsWaitingForSecuredWorking = true;

#pragma warning disable IDE0059
            SecuredMe MeSecured = new SecuredMe(true, Username, Password, this);
#pragma warning restore IDE0059
            GC.Collect();
        }
Beispiel #2
0
 /// <summary>
 /// You can't use this directly,
 /// please use <see cref="GetPlayerInfo(string, bool)"/>
 /// instead.
 /// </summary>
 /// <param name="playerName"></param>
 private PlayerInfo(StrongString playerName)
 {
     PlayerName = playerName;
     if (PlayerName == ThereIsConstants.Path.NotSet)
     {
         IsEmpty           = true;
         PlayerAvatar      = Avatar.GetDefaultAvatar();
         PlayerAvatarFrame = AvatarFrame.GetDefaultAvatarFrame();
     }
     else
     {
         IsEmpty = false;
     }
 }