public static void setStopped(ref Runflags rf) { if (!rf.HasFlag(Runflags.Stopped)) rf |= Runflags.Stopped; else rf -= Runflags.Stopped; }
public static void setPause(ref Runflags rf) { if (!rf.HasFlag(Runflags.Pause)) rf |= Runflags.Pause; else rf -= Runflags.Pause; }
public static void setDone(ref Runflags rf) { if (!rf.HasFlag(Runflags.Done)) rf |= Runflags.Done; else rf -= Runflags.Stopped; }
public static bool stop(Runflags rf) { return rf.HasFlag(Runflags.Stop); }
public static bool pause(Runflags rf) { return rf.HasFlag(Runflags.Pause); }
public static bool isStopped(Runflags rf) { return rf.HasFlag(Runflags.Stopped); }
public static bool isDone(Runflags rf) { return rf.HasFlag(Runflags.Done); }