Class DamagingWindowEventArgs
Contains all information before damage is dealt to a BreakableWindow.
Inheritance
System.Object
DamagingWindowEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class DamagingWindowEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDamagingWindowEventArgs(BreakableWindow, Single, DamageHandlerBase)
Initializes a new instance of the DamagingWindowEventArgs class.
Declaration
public DamagingWindowEventArgs(BreakableWindow window, float damage, DamageHandlerBase handler)
Parameters
Type | Name | Description |
---|---|---|
BreakableWindow | window | |
System.Single | damage | The damage being dealt. |
PlayerStatsSystem.DamageHandlerBase | handler |
Properties
| Improve this Doc View SourceHandler
Gets or sets the damage handler for this event.
Declaration
public DamageHandler Handler { get; set; }
Property Value
Type | Description |
---|---|
DamageHandler |
IsAllowed
Gets or sets a value indicating whether the window can be broken.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the Player causing the damage.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Window
Gets the Window object that is damaged.
Declaration
public Window Window { get; }
Property Value
Type | Description |
---|---|
Window |