Esempio n. 1
0
        /// <summary>
        /// When overridden in the derived class, allows for additional handling of when a quest has been added
        /// to this collection. This does not include quests added when loading the collection.
        /// </summary>
        /// <param name="quest">The quest that was added.</param>
        protected override void OnQuestAdded(IQuest <User> quest)
        {
            base.OnQuestAdded(quest);

            // Ensure the quest's values have been removed from the database (such as if the user already did this quest)
            _deleteCharacterQuestStatusKillsQuery.Execute(Owner.ID, quest.QuestID);
        }
Esempio n. 2
0
 /// <summary>
 /// Takes the quest requirements from the <paramref name="character"/>, if applicable. Not required,
 /// and only applies for when turning in a quest and not starting a quest.
 /// </summary>
 /// <param name="character">The <paramref name="character"/> to take the requirements from.</param>
 public void TakeRequirements(User character)
 {
     _deleteCharacterQuestStatusKillsQuery.Execute(character.ID, Quest.QuestID);
 }