Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions EXILED/Exiled.API/Features/Doors/BreakableDoor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public bool IgnoreRemoteAdmin
set => Base._nonInteractable = value;
}

/// <summary>
/// Repair the door.
/// </summary>
public void Repair() => Base.ServerRepair();

/// <summary>
/// Damages the door.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions EXILED/Exiled.API/Features/Doors/CheckpointDoor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ public DoorDamageType IgnoredDamage
/// </summary>
internal List<BreakableDoor> SubDoorsValue { get; } = new();

/// <summary>
/// Repair the door.
/// </summary>
public void Repair() => Base.ServerRepair();

/// <summary>
/// Toggles the state of the doors from <see cref="Subdoors"/>.
/// </summary>
Expand Down
6 changes: 1 addition & 5 deletions EXILED/Exiled.API/Features/Doors/Door.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ namespace Exiled.API.Features.Doors
using Exiled.API.Enums;
using Exiled.API.Extensions;
using Exiled.API.Features.Core;
using Exiled.API.Features.Hazards;
using Exiled.API.Interfaces;
using global::Hazards;
using Interactables.Interobjects;
using Interactables.Interobjects.DoorUtils;
using MEC;
using Mirror;
using UnityEngine;

using static Interactables.Interobjects.ElevatorManager;

using BaseBreakableDoor = Interactables.Interobjects.BreakableDoor;
using BaseKeycardPermissions = Interactables.Interobjects.DoorUtils.KeycardPermissions;
using Breakable = BreakableDoor;
Expand Down Expand Up @@ -640,7 +636,6 @@ private DoorType GetDoorType()
"NUKE_ARMORY" => DoorType.NukeArmory,
"LCZ_ARMORY" => DoorType.LczArmory,
"SURFACE_NUKE" => DoorType.NukeSurface,
"HID_CHAMBER" => DoorType.HIDChamber,
"HCZ_ARMORY" => DoorType.HczArmory,
"096" => DoorType.Scp096,
"049_ARMORY" => DoorType.Scp049Armory,
Expand All @@ -653,6 +648,7 @@ private DoorType GetDoorType()
"SERVERS_BOTTOM" => DoorType.ServersBottom,
"173_CONNECTOR" => DoorType.Scp173Connector,
"LCZ_WC" => DoorType.LczWc,
"HID_CHAMBER" => DoorType.HIDChamber,
"HID_UPPER" => DoorType.HIDUpper,
"HID_LOWER" => DoorType.HIDLower,
"173_ARMORY" => DoorType.Scp173Armory,
Expand Down
5 changes: 5 additions & 0 deletions EXILED/Exiled.API/Interfaces/IDamageableDoor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public interface IDamageableDoor
/// </summary>
public DoorDamageType IgnoredDamage { get; set; }

/// <summary>
/// Repair the door.
/// </summary>
public void Repair();

/// <summary>
/// Damages the door.
/// </summary>
Expand Down