Class DamagingWindowEventArgs
Contains all information before damage is dealt to a BreakableWindow.
public class DamagingWindowEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
DamagingWindowEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
DamagingWindowEventArgs(BreakableWindow, float, DamageHandlerBase)
Initializes a new instance of the DamagingWindowEventArgs class.
public DamagingWindowEventArgs(BreakableWindow window, float damage, DamageHandlerBase handler)
Parameters
windowBreakableWindowdamagefloatThe damage being dealt.
handlerDamageHandlerBase
Properties
Handler
Gets or sets the damage handler for this event.
public DamageHandler Handler { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the window can be broken.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the Player causing the damage.
public Player Player { get; }
Property Value
Window
Gets the Window object that is damaged.
public Window Window { get; }