public Task RestartQuest(int position)
        {
            Quest quest = GetQuestByPosition(position);

            if (quest == null)
            {
                return(null);
            }
            return(RunCommand(
                       new CompositeCommand(
                           new[]
            {
                StateCommads.CancelQuest(quest),
                StateCommads.StartQuest(quest)
            })));
        }
Exemple #2
0
        /// <summary>
        /// Cancels given quest.
        /// </summary>
        /// <param name="position"></param>
        public Task CancelQuest(int position)
        {
            Quest quest = GetQuestByPosition(position);

            return(quest == null ? null : RunCommand(StateCommads.CancelQuest(quest)));
        }