Exemple #1
0
        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;
        }
Exemple #2
0
 public void Init(IPrimitiveConditionData ruleData)
 {
     _data = ruleData as Tag;
 }