Ejemplo n.º 1
0
 public TriggerGraph(string eventName, ActionValueRef condition, TargetChecker[] targetCheckers, ActionNode action)
 {
     this.eventName = eventName;
     this.condition = condition;
     targetCheckerList.AddRange(targetCheckers);
     this.action = action;
 }
Ejemplo n.º 2
0
 public TargetChecker(string targetType, ActionValueRef condition, string invalidMsg)
 {
     this.targetType = targetType;
     this.condition  = condition;
     this.errorTip   = invalidMsg;
 }
Ejemplo n.º 3
0
 public TriggerGraph(string eventName, ActionValueRef condition, ActionNode action) : this(eventName, condition, new TargetChecker[0], action)
 {
 }
Ejemplo n.º 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)
 {
 }