public List<IPrimitiveConditionData> GenerateRules(List<TouchPoint2> points) { List<IPrimitiveConditionData> rules = new List<IPrimitiveConditionData>(); Tag tag = new Tag(); foreach (TouchPoint2 point in points) { if (point.Tag != null) { tag.Value = point.Tag; rules.Add(tag); } } if (rules.Count > 0) return rules; else return null; }
public void Init(IPrimitiveConditionData ruleData) { _data = ruleData as Tag; }