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

◆ collisionType

int Terraria.Tile.collisionType
get

Definition at line 68 of file Tile.cs.

69 {
70 get
71 {
72 if (!active())
73 {
74 return 0;
75 }
76 if (halfBrick())
77 {
78 return 2;
79 }
80 if (slope() > 0)
81 {
82 return 2 + slope();
83 }
84 if (Main.tileSolid[type] && !Main.tileSolidTop[type])
85 {
86 return 1;
87 }
88 return -1;
89 }
90 }
ushort type
Definition Tile.cs:8
bool active()
Definition Tile.cs:565
byte slope()
Definition Tile.cs:684
bool halfBrick()
Definition Tile.cs:650