Example #1
0
 public TriggerGraph(string eventName, ActionValueRef condition, TargetChecker[] targetCheckers, ActionNode action)
 {
     this.eventName = eventName;
     this.condition = condition;
     targetCheckerList.AddRange(targetCheckers);
     this.action = action;
 }
Example #2
0
 public TargetChecker(string targetType, ActionValueRef condition, string invalidMsg)
 {
     this.targetType = targetType;
     this.condition  = condition;
     this.errorTip   = invalidMsg;
 }
Example #3
0
 public TriggerGraph(string eventName, ActionValueRef condition, ActionNode action) : this(eventName, condition, new TargetChecker[0], action)
 {
 }
Example #4
0
 /// <summary>
 /// 构造一个主动效果
 /// </summary>
 /// <param name="condition"></param>
 /// <param name="targetCheckers"></param>
 /// <param name="action"></param>
 /// <param name="tags"></param>
 public GeneratedEffect(ActionValueRef condition, TargetChecker[] targetCheckers, ActionNode action, string[] tags) : this(new string[0], null, null, new TriggerGraph[]
 {
     new TriggerGraph("ActiveEvent", condition, targetCheckers, action)
 }, tags)
 {
 }