Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Misfiy committed May 30, 2024
1 parent ac127af commit bb197a1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Exiled.Events/EventArgs/Map/DestroyingDoorEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,23 @@ public class DestroyingDoorEventArgs : IDeniableEvent, IDoorEvent
public DestroyingDoorEventArgs(DoorVariant doorVariant, DoorDamageType doorDamageType, bool isAllowed = true)
{
Door = API.Features.Doors.Door.Get(doorVariant);
DamageType = doorDamageType;
IsAllowed = isAllowed;
}

/// <summary>
/// Gets or sets a value indicating whether the door can be destroyed.
/// Gets a value indicating the door that will be destroyed.
/// </summary>
public bool IsAllowed { get; set; }
public API.Features.Doors.Door Door { get; }

/// <summary>
/// Gets a value indicating the door that will be destroyed.
/// Gets the <see cref="DoorDamageType"/>.
/// </summary>
public API.Features.Doors.Door Door { get; }
public DoorDamageType DamageType { get; }

/// <summary>
/// Gets or sets a value indicating whether the door can be destroyed.
/// </summary>
public bool IsAllowed { get; set; }
}
}

0 comments on commit bb197a1

Please sign in to comment.