Skip to content
Open
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/Enums/DoorType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,10 @@ public enum DoorType
/// Represents the door in <see cref="RoomType.HczLoadingBay"/>.
/// </summary>
HczLoadingBay,

/// <summary>
/// Represents a spawnable unsecured gate.
/// </summary>
SpawnableUnsecuredGate,
}
}
2 changes: 1 addition & 1 deletion EXILED/Exiled.API/Extensions/DoorTypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class DoorTypeExtensions
/// <param name="door">The door to be checked.</param>
/// <returns>Returns whether the <see cref="DoorType"/> is a gate.</returns>
public static bool IsGate(this DoorType door) => door is DoorType.GateA or DoorType.GateB or DoorType.Scp914Gate or
DoorType.Scp049Gate or DoorType.GR18Gate or DoorType.SurfaceGate or DoorType.Scp173Gate;
DoorType.Scp049Gate or DoorType.GR18Gate or DoorType.SurfaceGate or DoorType.Scp173Gate or DoorType.Scp173NewGate or DoorType.CheckpointGateA or DoorType.CheckpointGateB or DoorType.SpawnableUnsecuredGate or DoorType.UnknownGate;

/// <summary>
/// Checks if a <see cref="DoorType">door type</see> is a checkpoint.
Expand Down
1 change: 1 addition & 0 deletions EXILED/Exiled.API/Features/Doors/Door.cs
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ private DoorType GetDoorType()
ElevatorGroup.LczB01 or ElevatorGroup.LczB02 => DoorType.ElevatorLczB,
_ => DoorType.UnknownElevator,
},
"Spawnable Unsecured Pryable GateDoor" => DoorType.SpawnableUnsecuredGate,
_ => DoorType.UnknownDoor,
};
}
Expand Down
Loading