Table of Contents

Class DamagingWindowEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

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

window BreakableWindow
damage float

The damage being dealt.

handler DamageHandlerBase

Properties

Handler

Gets or sets the damage handler for this event.

public DamageHandler Handler { get; set; }

Property Value

DamageHandler

IsAllowed

Gets or sets a value indicating whether the window can be broken.

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the Player causing the damage.

public Player Player { get; }

Property Value

Player

Window

Gets the Window object that is damaged.

public Window Window { get; }

Property Value

Window