コード例 #1
0
 public static bool HasFlag(this DfMapGenerator.CellState cs, DfMapGenerator.CellState flag)
 {
     return(((int)cs & (int)flag) != 0);
 }
コード例 #2
0
 public static DfMapGenerator.CellState OppositeWall(this DfMapGenerator.CellState orig)
 {
     return((DfMapGenerator.CellState)(((int)orig >> 2) | ((int)orig << 2)) & DfMapGenerator.CellState.Initial);
 }