GKRule.FromPredicate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory method to create a GKRule with the specified predicate and action.
[Foundation.Export("ruleWithBlockPredicate:action:")]
public static GameplayKit.GKRule FromPredicate (Func<GameplayKit.GKRuleSystem,bool> predicate, Action<GameplayKit.GKRuleSystem> action);
static member FromPredicate : Func<GameplayKit.GKRuleSystem, bool> * Action<GameplayKit.GKRuleSystem> -> GameplayKit.GKRule
Parameters
- predicate
- Func<GKRuleSystem,Boolean>
- action
- Action<GKRuleSystem>
Returns
- Attributes