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

◆ CountsAsClass()

bool Terraria.Projectile.CountsAsClass ( DamageClass damageClass)
inline

This is used to check if the projectile is considered to be a member of a specified T:Terraria.ModLoader.DamageClass.

Parameters
damageClassThe DamageClass to compare with the one assigned to this projectile.
Returns
true if this projectiles's T:Terraria.ModLoader.DamageClass matches damageClass , false otherwise
See also
M:Terraria.Projectile.CountsAsClass``1

Definition at line 93179 of file Projectile.cs.

93180 {
93182 }
int Type
The internal ID of this T:Terraria.ModLoader.DamageClass.
DamageClass DamageType
The damage type assigned to this projectile, represented as a DamageClass. Leave blank or use DamageC...

References Terraria.ModLoader.DamageClassLoader.effectInheritanceCache.