예제 #1
0
 internal void OnDamageWindow(DamagingWindowEventArgs ev)
 {
     ev.Damage = ev.Damage * config.Window.damageMultiplier;
     if (!config.Window.canBeDamaged)
     {
         ev.Damage = 0f;
     }
 }
예제 #2
0
파일: Player.cs 프로젝트: xRoier/EXILED
 /// <summary>
 /// Called before a <see cref="API.Features.Player"/> damage a window.
 /// </summary>
 /// <param name="ev">The <see cref="DamagingWindowEventArgs"/> instance.</param>
 public static void OnPlayerDamageWindow(DamagingWindowEventArgs ev) => PlayerDamageWindow.InvokeSafely(ev);
예제 #3
0
파일: Map.cs 프로젝트: o5zereth/EXILED
 /// <summary>
 /// Called before damaging a window.
 /// </summary>
 /// <param name="ev">The <see cref="DamagingWindowEventArgs"/> instance.</param>
 public static void OnDamagingWindow(DamagingWindowEventArgs ev) => DamagingWindow.InvokeSafely(ev);