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

◆ Matches()

bool Terraria.Player.ChannelCancelKey.Matches ( Projectile projectile)
inline

Definition at line 105 of file Player.cs.

106 {
107 if (ProjectileTypeExpected == projectile.type)
108 {
109 return ProjectileIndexExpected == projectile.whoAmI;
110 }
111 return false;
112 }

References Terraria.Player.ChannelCancelKey.ProjectileIndexExpected, Terraria.Player.ChannelCancelKey.ProjectileTypeExpected, Terraria.Projectile.type, and Terraria.Entity.whoAmI.