///<inheritdoc cref="IQuestCommand"/> public bool Execute(Quest quest) { if (_ifCommand.Execute(quest)) { return(true); } return(_elseCommand.Execute(quest)); }
public bool Execute(Quest quest) { if (IsEachChildMatch(quest.Children, _predicate)) { return(_inner.Execute(quest)); } return(false); }
public bool Execute(Quest quest) { return(_predicate(quest) && _innerCommand.Execute(quest)); }
///<inheritdoc cref="ICommand"/> public virtual bool Execute() { return(QuestCommand.Execute(QuestRef)); }