21 lines
315 B
C#
21 lines
315 B
C#
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;
|
|
}
|
|
}
|
|
}
|