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