Class DoorTypeExtensions
A set of extensions for DoorType.
Inheritance
System.Object
DoorTypeExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Extensions
Assembly: Exiled.API.dll
Syntax
public static class DoorTypeExtensions
Methods
| Improve this Doc View SourceIsCheckpoint(DoorType)
Checks if a door type is a checkpoint.
Declaration
public static bool IsCheckpoint(this DoorType door)
Parameters
Type | Name | Description |
---|---|---|
DoorType | door | The door to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the DoorType is a checkpoint or not. |
IsElevator(DoorType)
Checks if a door type is an elevator.
Declaration
public static bool IsElevator(this DoorType door)
Parameters
Type | Name | Description |
---|---|---|
DoorType | door | The door to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the DoorType is an elevator or not. |
IsGate(DoorType)
Checks if a door type is a gate.
Declaration
public static bool IsGate(this DoorType door)
Parameters
Type | Name | Description |
---|---|---|
DoorType | door | The door to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the DoorType is a gate or not. |