Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void OnHurting()
 {
     Hurting?.Invoke(this, EventArgs.Empty);
 }