Exemple #1
0
 public bool IsQuestActive(string name)
 {
     return(ActiveQuests.Where(_ => _.Quest.QuestId.EqualsIgnoreCase(name)).Count() > 0);
 }
Exemple #2
0
 public bool IsObjectiveActive(string name, int id)
 {
     return(ActiveQuests.Where(_ => (_.Quest.QuestId.EqualsIgnoreCase(name) && (_.Objectives.Where(o => o.Id == id && !o.Completed).Count() > 0))).Count() > 0);
 }