Example #1
0
 public void SetLimitationTime(StrongString[] timeValues)
 {
     BanLimitationTime = new List <IDateProvider <DateTime, Trigger, StrongString> >(BanList.Length);
     for (int i = 0; i < BanLimitationTime.Count; i++)
     {
         BanLimitationTime[i] = DateProvider.Parse(timeValues[i]);
     }
 }
Example #2
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
 }
Example #3
0
 public static IDateProvider <DateTime, Trigger, StrongString> ToDateTime(StrongString value)
 {
     return(DateProvider.Parse(value));
 }