public EnhancedWhileTag(Common.BoolDelegate isDoneDelegate = null, params ProfileBehavior[] children) { IsDoneDelegate = isDoneDelegate; if(children!=null && children.Any()) Body = children.ToList(); }
/// <summary> /// new CompositeTag(ret => MyComposite); /// </summary> public CompositeTag(Common.CompositeDelegate compositeDelegate = null) { if (compositeDelegate != null) //Composite = compositeDelegate.Invoke(null); CompositeDelegate = compositeDelegate; }
/// <summary> /// Action is a method with return type bool, false will loop, true will end. /// </summary> public ActionTag(Common.BoolDelegate action = null) { if(action != null) Action = action; }