/// <summary> /// After all initial rule setup has completed, call this to empty the new rule queue and process all /// the added rules. /// </summary> public void FinalizeNewRules() { if (QueueingMode != NewRuleQueueingMode.QueueNewRules) { return; } QueueingMode = NewRuleQueueingMode.ImmediatelyAddNewRules; foreach (var act in NewRuleQueue) { act(); } NewRuleQueue.Clear(); }
public RuleEngine(NewRuleQueueingMode QueueingMode) { this.QueueingMode = QueueingMode; Rules = new RuleSet(this); }