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