public bool isValidTileAnchor(int type)
{
int[] numArray1;
int[] numArray2;
if (this._anchorTiles == null)
{
numArray1 = (int[])null;
numArray2 = (int[])null;
}
else
{
numArray1 = this._anchorTiles.tileValid;
numArray2 = this._anchorTiles.tileInvalid;
}
if (numArray2 != null)
{
for (int index = 0; index < numArray2.Length; ++index)
{
if (type == numArray2[index])
return false;
}
}
if (numArray1 == null)
return true;
for (int index = 0; index < numArray1.Length; ++index)
{
if (type == numArray1[index])
return true;
}
return false;
}