Class DyingEventArgs
Contains all information before a player dies.
public class DyingEventArgs : IAttackerEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
DyingEventArgs
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
DyingEventArgs(Player, DamageHandlerBase)
Initializes a new instance of the DyingEventArgs class.
public DyingEventArgs(Player target, DamageHandlerBase damageHandler)
Parameters
target
PlayerdamageHandler
DamageHandlerBase
Properties
Attacker
Gets the killing player.
public Player Attacker { get; }
Property Value
DamageHandler
Gets or sets the CustomDamageHandler.
public CustomDamageHandler DamageHandler { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the player can be killed.
public bool IsAllowed { get; set; }
Property Value
ItemsToDrop
Gets the list of items to be dropped.
public List<Item> ItemsToDrop { get; }
Property Value
Player
Gets the dying player.
public Player Player { get; }