internal static bool InvokeHurting(object player, object damageSource, int damage, bool isPvP, bool isCritical) { var args = new HurtingEventArgs((Player)player, (PlayerDeathReason)damageSource, damage, isPvP, isCritical); Hurting?.Invoke(null, args); return(args.Handled); }
private void OnHurting() { Hurting?.Invoke(this, EventArgs.Empty); }