Пример #1
0
 private void SetParams(StrongString serverValue)
 {
     StrongString[] myStrings = serverValue.Split(CharSeparater);
     PlayerName          = myStrings[0];                                     // 1
     PlayerLevel         = myStrings[1].ToUInt16();                          // 2
     PlayerLVLRanking    = myStrings[2].ToUInt16();                          // 3
     PlayerPowerRanking  = myStrings[3].ToUInt16();                          // 4
     PlayerGuildName     = myStrings[4];                                     // 5
     GuildPosition       = (GuildPosition)myStrings[5].ToUInt16();           // 6
     LastSeen            = DateProvider.Parse(myStrings[6]);                 // 7
     PlayerPower         = Unit.ConvertToUnit(myStrings[7]);                 // 8
     PlayerIntro         = myStrings[8];                                     // 9
     PlayerAvatar        = Avatar.ConvertToAvatar(myStrings[9]);             // 10
     PlayerAvatarFrame   = AvatarFrame.ParseToAvatarFrame(myStrings[10]);    // 11
     PlayerVIPlvl        = myStrings[11].ToUInt16();                         // 12
     PlayerCurrentExp    = Unit.ConvertToUnit(myStrings[12]);                // 13
     PlayerTotalExp      = Unit.ConvertToUnit(myStrings[13]);                // 14
     PlayerCurrentVIPExp = Unit.ConvertToUnit(myStrings[14]);                // 15
     ThePlayerElement    = (PlayerElement)myStrings[15].ToUInt16();          // 16
     PlayerKingdom       = (LTW_Kingdoms)myStrings[16].ToInt32();            // 17
     SocialPosition      = SocialPosition.GetSocialPosition(myStrings[17]);  // 18
 }
Пример #2
0
 //-------------------------------------------------
 #region Ordinary Method's Region
 protected StrongString PlayerInfoGetForServer()
 {
     return
         (PlayerName + CharSeparater +                                         // 1
          PlayerLevel.ToString() + CharSeparater +                             // 2
          PlayerLVLRanking.ToString() + CharSeparater +                        // 3
          PlayerPowerRanking.ToString() + CharSeparater +                      // 4
          PlayerGuildName + CharSeparater +                                    // 5
          ((uint)GuildPosition).ToString() + CharSeparater +                   // 6
          LastSeen.GetForServer() + CharSeparater +                            // 7
          PlayerPower.GetForServer() + CharSeparater +                         // 8
          PlayerIntro + CharSeparater +                                        // 9
          PlayerAvatar.GetForServer() + CharSeparater +                        // 10
          PlayerAvatarFrame.GetForServer() + CharSeparater +                   // 11
          PlayerVIPlvl.ToString() + CharSeparater +                            // 12
          PlayerCurrentExp.GetForServer() + CharSeparater +                    // 13
          PlayerTotalExp.GetForServer() + CharSeparater +                      // 14
          PlayerCurrentVIPExp.GetForServer() + CharSeparater +                 // 15
          ((int)ThePlayerElement).ToString() + CharSeparater +                 // 16
          ((int)PlayerKingdom).ToString() + CharSeparater +                    // 17
          SocialPosition.GetForServer() + CharSeparater);                      // 18
 }