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

◆ Matches()

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

Definition at line 114 of file Player.cs.

115 {
116 if (ProjectileTypeExpected == projectile.type)
117 {
118 return ProjectileIndexExpected == projectile.whoAmI;
119 }
120 return false;
121 }

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

Referenced by Terraria.Player.TryCancelChannel().

+ Here is the caller graph for this function: