Esempio n. 1
0
 /// <summary>
 /// Loads the achievements.
 /// </summary>
 /// <param name="dbClient">The database client.</param>
 internal void LoadAchievements(IQueryAdapter dbClient)
 {
     this.Achievements.Clear();
     AchievementLevelFactory.GetAchievementLevels(out this.Achievements, dbClient);
     this.AchievementDataCached = new ServerMessage(LibraryParser.OutgoingRequest("SendAchievementsRequirementsMessageComposer"));
     this.AchievementDataCached.AppendInteger(this.Achievements.Count);
     foreach (Achievement Ach in this.Achievements.Values)
     {
         this.AchievementDataCached.AppendString(Ach.GroupName.Replace("ACH_", ""));
         this.AchievementDataCached.AppendInteger(Ach.Levels.Count);
         for (int i = 1; i < Ach.Levels.Count + 1; i++)
         {
             this.AchievementDataCached.AppendInteger(i);
             this.AchievementDataCached.AppendInteger(Ach.Levels[i].Requirement);
         }
     }
     this.AchievementDataCached.AppendInteger(0);
 }
 public void LoadAchievements()
 {
     AchievementLevelFactory.GetAchievementLevels(out _achievements);
 }
Esempio n. 3
0
 public void Init()
 {
     AchievementLevelFactory.GetAchievementLevels(out _achievements);
 }