public static bool IsNoneOf(this CompletionCause state, params CompletionCause[] notTheseStates) { return(notTheseStates.All(otherState => otherState != state)); }
private void OnQuestCompleted(MyQuestEntityComponent questComponent, MyStringHash questSubtypeId, CompletionCause completionCause) { // we need to check if this message is from our quest component ... static events are dumb if (_questComp != questComponent) { return; } _activeQuests.Remove(questSubtypeId); }
public static bool IsOneOf(this CompletionCause state, params CompletionCause[] theseStates) { return(theseStates.Any(otherState => otherState == state)); }