예제 #1
0
 public override void Resume()
 {
     if (restart_on_resume)
     {
         temporal_event.Restart();
     }
     else
     {
         temporal_event.Start();
     }
 }
예제 #2
0
 static public void StartOrStopClear(this TemporalEvent item, bool run)
 {
     if (run)
     {
         item.Start();
     }
     else
     {
         item.StopClear();
     }
 }
예제 #3
0
        public override bool IsSatisfied()
        {
            if (predicate())
            {
                temporal_event.Start();
            }
            else
            {
                temporal_event.StopClear();
            }

            if (temporal_event.IsTimeOver())
            {
                return(true);
            }

            return(false);
        }
예제 #4
0
 protected override void StartFulfill()
 {
     temporal_event.Start();
 }
예제 #5
0
        static public bool Repeat(this TemporalEvent item)
        {
            item.Start();

            return(item.TriggerRestart());
        }
예제 #6
0
        static public bool Fire(this TemporalEvent item)
        {
            item.Start();

            return(item.TriggerStopClear());
        }
예제 #7
0
 static public void Restart(this TemporalEvent item)
 {
     item.StopClear();
     item.Start();
 }