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

◆ GetSource_OnHurt() [2/2]

IEntitySource Terraria.Player.GetSource_OnHurt ( PlayerDeathReason damageSource,
string? context = null )
inline

Definition at line 58765 of file Player.cs.

58766 {
58767 Entity attacker;
58768 return GetSource_OnHurt((whoAmI == Main.myPlayer && damageSource.TryGetCausingEntity(out attacker)) ? attacker : null, context);
58769 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
IEntitySource GetSource_OnHurt(PlayerDeathReason damageSource, string? context=null)
Definition Player.cs:58765

References Terraria.Player.GetSource_OnHurt(), Terraria.Main.myPlayer, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.GetProjectileSource_OnHurt(), and Terraria.Player.GetSource_OnHurt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: