namespace BitStrap { public static class LayerHelper { public static int GetMask(int layerIndex) { return 1 << layerIndex; } public static int GetMask(int[] layerIndexes) { int num = 0; foreach (int layerIndex in layerIndexes) { num |= GetMask(layerIndex); } return num; } } }