add(_:)
Adds the specified rule to the system.
Declaration
func add(_ rule: GKRule)Parameters
- rule:
A rule object.
Discussion
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.