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