Terraria.TileObjectData.isValidWallAnchor C# (CSharp) Method

isValidWallAnchor() public method

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