Adds the specified rule to the system.
On This Page
func add(_ rule: GKRule)
A rule object.
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 listed in the agenda in the order in which they were added to the system.
var rules: [GKRule]
The list of rules to be executed when evaluating the system.
Adds the specified list of rules to the system.
Removes all rules from the system.
var agenda: [GKRule]
The list of rules to be considered when evaluating the system.