Beispiel #1
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
 }
Beispiel #2
0
 /// <summary>
 /// getting a float between 0 and 1 which
 /// indicate the advancing of the player in leveling.
 /// </summary>
 /// <returns></returns>
 public double GetAdvancingExp()
 {
     return(((double)PlayerCurrentExp.ConvertToInt()) / GetNeededExpForNextLvl().ConvertToInt());
 }