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) }))); }
/// <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))); }