Adds the specified list of rules to the system.
On This Page
func add(_ rules: [GKRule])
An array of rule objects.
Adding rules to the system also adds them to the agenda list, in decreasing order of the rules’ salience values. Rules with the same salience are added to the agenda in the order of the specified array.
var rules: [GKRule]
The list of rules to be executed when evaluating the system.
Adds the specified rule to the system.
Removes all rules from the system.
var agenda: [GKRule]
The list of rules to be considered when evaluating the system.