Пример #1
0
 public EnhancedWhileTag(Common.BoolDelegate isDoneDelegate = null, params ProfileBehavior[] children)
 {
     IsDoneDelegate = isDoneDelegate;
     if(children!=null && children.Any())
         Body = children.ToList();
 }
Пример #2
0
 /// <summary>
 /// new CompositeTag(ret => MyComposite);
 /// </summary>
 public CompositeTag(Common.CompositeDelegate compositeDelegate = null)
 {
     if (compositeDelegate != null) //Composite = compositeDelegate.Invoke(null);
         CompositeDelegate = compositeDelegate;
 }
Пример #3
0
 /// <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;
 }