Class DamagingDoorEventArgs
Contains all information before damage is dealt to a Interactables.Interobjects.DoorUtils.DoorVariant.
public class DamagingDoorEventArgs : IDeniableEvent, IExiledEvent
- Inheritance
-
DamagingDoorEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
DamagingDoorEventArgs(DoorVariant, float, DoorDamageType)
Initializes a new instance of the DamagingDoorEventArgs class.
public DamagingDoorEventArgs(DoorVariant door, float damage, DoorDamageType doorDamageType)
Parameters
door
DoorVariantdamage
floatThe damage being dealt.
doorDamageType
DoorDamageType
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
IsAllowed
Gets or sets a value indicating whether the door can be broken.
public bool IsAllowed { get; set; }