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

◆ CheckValidity()

override bool Terraria.WorldBuilding.Conditions.IsTile.CheckValidity ( int x,
int y )
inlineprotected

Definition at line 14 of file Conditions.cs.

15 {
16 if (GenBase._tiles[x, y].active())
17 {
18 for (int i = 0; i < _types.Length; i++)
19 {
20 if (GenBase._tiles[x, y].type == _types[i])
21 {
22 return true;
23 }
24 }
25 }
26 return false;
27 }

References Terraria.WorldBuilding.GenBase._tiles, and Terraria.WorldBuilding.Conditions.IsTile._types.