public void LoadMore() { this.RoomSession = new RoomSession(this.ID, this); this.CommandCache = new CommandCache(this.ID, this); this.UserStats = new UserStats(this.ID); if (!this.UserStats.Fill(this.GetUserDataFactory().GetUserStats())) { using (DatabaseClient dbClient = Skylight.GetDatabaseManager().GetClient()) { dbClient.AddParamWithValue("userId", this.ID); dbClient.ExecuteQuery("INSERT INTO user_stats(user_id) VALUES(@userId)"); } } this.UserAchievements = new UserAchievements(this); this.InventoryManager = new InventoryManager(this.GetSession(), this.GetUserDataFactory()); this.SubscriptionManager = new SubscriptionManager(this.ID, this, this.GetUserDataFactory()); this.WardrobeManager = new WardrobeManager(this.ID, this, this.GetUserDataFactory()); this.BadgeManager = new BadgeManager(this.ID, this, this.GetUserDataFactory()); this.LoadFavouriteRooms(); this.LoadRooms(); this.LoadTags(); this.LoadIgnores(); this.LoadPets(); }
public SendAchievementListComposerHandler(UserAchievements userAchievements) { this.UserAchievements = userAchievements; }
/// <summary> /// Inserts all given achievements on submit. /// </summary> /// <param name="achievements">The achievements.</param> public void InsertAllOnSubmit(IEnumerable <UserAchievement> achievements) { UserAchievements.InsertAllOnSubmit(achievements); }
/// <summary> /// Deletes all given achievements on submit. /// </summary> /// <param name="achievements">The achievements.</param> public void DeleteAllOnSubmit(IEnumerable <UserAchievement> achievements) { UserAchievements.DeleteAllOnSubmit(achievements); }