Terraria.TileObjectData.isValidAlternateAnchor C# (CSharp) Method

isValidAlternateAnchor() public method

public isValidAlternateAnchor ( int type ) : bool
type int
return bool
        public bool isValidAlternateAnchor(int type)
        {
            if (this._anchorTiles == null)
                return false;
            int[] numArray = this._anchorTiles.tileAlternates;
            if (numArray == null)
                return false;
            for (int index = 0; index < numArray.Length; ++index)
            {
                if (type == numArray[index])
                    return true;
            }
            return false;
        }