Exemplo n.º 1
0
        private void Skip(StepMaster master, int index)
        {
            int stepIndex = Wireds[index].Right;

            Operations[stepIndex].Skip();

            if (Operations[stepIndex].Instant)
            {
                for (int i = 0; i < Wireds.Count; i++)
                {
                    if (Wireds[i].Left == stepIndex)
                    {
                        Skip(master, i);
                    }
                }
            }
            else
            {
                master.DelayExecute(() =>
                {
                    for (int i = 0; i < Wireds.Count; i++)
                    {
                        if (Wireds[i].Left == stepIndex)
                        {
                            Skip(master, i);
                        }
                    }
                }, Operations[stepIndex].ElapseTime / StepMaster.SkipMultiple);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 跳过步骤内容
 /// </summary>
 public void Skip(StepMaster master)
 {
     for (int i = 0; i < Wireds.Count; i++)
     {
         if (Wireds[i].Left == -1)
         {
             Skip(master, i);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 执行步骤内容
 /// </summary>
 public void Execute(StepMaster master)
 {
     for (int i = 0; i < Wireds.Count; i++)
     {
         if (Wireds[i].Left == -1)
         {
             Execute(master, i);
         }
     }
 }
Exemplo n.º 4
0
        protected override void OnEnable()
        {
            _target = target as StepMaster;

            base.OnEnable();
        }
Exemplo n.º 5
0
 private void OnEnable()
 {
     _target = target as StepMaster;
 }