/// <summary>
        /// Get builder for a step during which user has to put objects into a snap zone.
        /// </summary>
        /// <param name="name">Name of the step.</param>
        /// <param name="snapZone">Snap zone in which user should put objects.</param>
        /// <param name="objectsToPut">List of objects to put into collider.</param>
        /// <returns>Configured builder.</returns>
        public static BasicStepBuilder PutIntoSnapZone(string name, ISnapZoneProperty snapZone, params ISnappableProperty[] objectsToPut)
        {
            BasicStepBuilder builder = new BasicStepBuilder(name);

            foreach (ISnappableProperty objectToPut in objectsToPut)
            {
                builder.AddCondition(new SnappedCondition(objectToPut, snapZone));
            }

            return(builder);
        }
Example #2
0
 public void FastForwardSnapInto(ISnapZoneProperty snapZone)
 {
     throw new NotImplementedException();
 }
 public SnappedCondition(ISnappableProperty target, ISnapZoneProperty snapZone = null, string name = null) : this(TrainingReferenceUtils.GetNameFrom(target), TrainingReferenceUtils.GetNameFrom(snapZone), name)
 {
 }