Beispiel #1
0
 private StrongString MeGetForServer()
 {
     return
         (((ushort)StoryStep).ToString() + CharSeparater +             // 0
          AvatarFrameList.GetForServer().GetValue() + CharSeparater +  // 1
          AvatarList.GetForServer().GetValue() + CharSeparater +       // 2
          MyBlockList.GetForServer().GetValue() + CharSeparater);      // 3
 }
Beispiel #2
0
 //-----------------------------------------------------------
 #region Setting Methods Region
 // These Methods are offline, so you should update the player info
 // after using these method, they will only change the
 // Properties.
 private void SetParams(StrongString serverValue)
 {
     StrongString[] myStrings = serverValue.Split(CharSeparater);
     StoryStep       = (StorySteps)myStrings[0].ToUInt16();  // 0
     AvatarFrameList = AvatarFrameList.Parse(myStrings[1]);  // 1
     AvatarList      = AvatarList.Parse(myStrings[2]);       // 2
     MyBlockList     = ChatBlockList.Parse(myStrings[3]);    // 3
 }
Beispiel #3
0
 public bool AddPlayerAvatar(Avatar avatar)
 {
     if (!avatar.IsSpecial)
     {
         return(false);
     }
     AvatarList.AddAvatar(avatar);
     return(true);
 }
Beispiel #4
0
        /// <summary>
        /// Information for parameters at: <see cref="Me"/>
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void CreateMeTimer_Tick(object sender, EventArgs e)
        {
            ((Timer)sender).Enabled = false;
            ((Timer)sender).Dispose();
            //-----------------------------------------------
            AvatarFrameList = AvatarFrameList.GenerateEmptyList();
            AvatarList      = AvatarList.GenerateEmptyList();
            MyBlockList     = ChatBlockList.GenerateBlankChatBlockList();
            //-----------------------------------------------
            var targetFile = Username + FileEndName2;
            await ThereIsServer.Actions.CreateFile(ThereIsServer.ServersInfo.MyServers[0],
                                                   targetFile,
                                                   new DataBaseCreation("Testing for Creating",
                                                                        QString.Parse(MeGetForServer())));

            ((CreateProfileSandBox)ThereIsConstants.Forming.TheMainForm.ShowingSandBox).IsCreatingEnded2 = true;
            GC.Collect();
        }