Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ isValidWallAnchor()

bool Terraria.ObjectData.TileObjectData.isValidWallAnchor ( int type)
inline

Definition at line 1849 of file TileObjectData.cs.

1850 {
1851 int[] array = ((_anchorTiles != null) ? _anchorTiles.wallValid : null);
1852 if (array == null)
1853 {
1854 if (type == 0)
1855 {
1856 return false;
1857 }
1858 return true;
1859 }
1860 for (int i = 0; i < array.Length; i++)
1861 {
1862 if (type == array[i])
1863 {
1864 return true;
1865 }
1866 }
1867 return false;
1868 }

References Terraria.ObjectData.TileObjectData._anchorTiles, System.array, System.type, and Terraria.Modules.AnchorTypesModule.wallValid.

Referenced by Terraria.TileObject.CanPlace().