Exemple #1
0
 public static void setStopped(ref Runflags rf)
 {
     if (!rf.HasFlag(Runflags.Stopped))
         rf |= Runflags.Stopped;
     else
         rf -= Runflags.Stopped;
 }
Exemple #2
0
 public static void setPause(ref Runflags rf)
 {
     if (!rf.HasFlag(Runflags.Pause))
         rf |= Runflags.Pause;
     else
         rf -= Runflags.Pause;
 }
Exemple #3
0
 public static void setDone(ref Runflags rf)
 {
     if (!rf.HasFlag(Runflags.Done))
         rf |= Runflags.Done;
     else
         rf -= Runflags.Stopped;
 }
Exemple #4
0
 public static bool stop(Runflags rf)
 {
     return rf.HasFlag(Runflags.Stop);
 }
Exemple #5
0
 public static bool pause(Runflags rf)
 {
     return rf.HasFlag(Runflags.Pause);
 }
Exemple #6
0
 public static bool isStopped(Runflags rf)
 {
     return rf.HasFlag(Runflags.Stopped);
 }
Exemple #7
0
 public static bool isDone(Runflags rf)
 {
     return rf.HasFlag(Runflags.Done);
 }