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