add(_:)
Adds the specified list of rules to the system.
Declaration
func add(_ rules: [GKRule])Parameters
- rules:
An array of rule objects.
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 added to the agenda in the order of the specified array.