示例#1
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static void setStopped(ref Runflags rf)
 {
     if (!rf.HasFlag(Runflags.Stopped))
         rf |= Runflags.Stopped;
     else
         rf -= Runflags.Stopped;
 }
示例#2
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static void setPause(ref Runflags rf)
 {
     if (!rf.HasFlag(Runflags.Pause))
         rf |= Runflags.Pause;
     else
         rf -= Runflags.Pause;
 }
示例#3
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static void setDone(ref Runflags rf)
 {
     if (!rf.HasFlag(Runflags.Done))
         rf |= Runflags.Done;
     else
         rf -= Runflags.Stopped;
 }
示例#4
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static bool stop(Runflags rf)
 {
     return rf.HasFlag(Runflags.Stop);
 }
示例#5
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static bool pause(Runflags rf)
 {
     return rf.HasFlag(Runflags.Pause);
 }
示例#6
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static bool isStopped(Runflags rf)
 {
     return rf.HasFlag(Runflags.Stopped);
 }
示例#7
0
文件: fFlags.cs 项目: Sihd/FactorTree
 public static bool isDone(Runflags rf)
 {
     return rf.HasFlag(Runflags.Done);
 }