public bool?Evaluate(PredicateEnum predicate, string[] parameters)
 {
     switch (predicate)
     {
     case PredicateEnum.HasItem:
         return(HasItem(InventoryItem.GetFromID(parameters[0])));
     }
     return(null);
 }
Example #2
0
        public bool?Evaluate(PredicateEnum predicate, string[] parameters)
        {
            switch (predicate)
            {
            case PredicateEnum.HasQuest:
                return(HasQuest(Quest.GetByName(parameters[0])));

            case PredicateEnum.CompletedQuest:
                return(GetQuestStatus(Quest.GetByName(parameters[0])).IsComplete());
            }
            return(null);
        }