Class DamagingDoorEventArgs
Contains all information before damage is dealt to a Interactables.Interobjects.DoorUtils.DoorVariant.
public class DamagingDoorEventArgs : IDeniableEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
DamagingDoorEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
DamagingDoorEventArgs(DoorVariant, float, DoorDamageType, Footprint)
Initializes a new instance of the DamagingDoorEventArgs class.
public DamagingDoorEventArgs(DoorVariant door, float damage, DoorDamageType doorDamageType, Footprint footprint)
Parameters
doorDoorVariantdamagefloatThe damage being dealt.
doorDamageTypeDoorDamageTypefootprintFootprint
Properties
Damage
Gets or sets the damage dealt to the door.
public float Damage { get; set; }
Property Value
DamageType
Gets the Interactables.Interobjects.DoorUtils.DoorDamageType dealt to the door.
public DoorDamageType DamageType { get; }
Property Value
- DoorDamageType
Door
Gets the Door object that is damaged.
public Door Door { get; }
Property Value
Footprint
Gets the Footprinting.Footprint of the player that damaged the door.
public Footprint Footprint { get; }
Property Value
- Footprint
IsAllowed
Gets or sets a value indicating whether the door can be broken.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the Player triggering the event.
public Player Player { get; }