Class RoomExtensions
Inheritance
Inherited Members
Namespace: Exiled.API.Extensions
Assembly: Exiled.API.dll
Syntax
public static class RoomExtensions
Methods
| Improve this Doc View SourceGetZone(ZoneType)
Converts the provided ZoneType into the corresponding MapGeneration.FacilityZone.
Declaration
public static FacilityZone GetZone(this ZoneType facility)
Parameters
Type | Name | Description |
---|---|---|
ZoneType | facility | The ZoneType to convert. |
Returns
Type | Description |
---|---|
MapGeneration.FacilityZone | FacilityZone. |
GetZone(FacilityZone)
Converts the provided MapGeneration.FacilityZone into the corresponding ZoneType.
Declaration
public static ZoneType GetZone(this FacilityZone facility)
Parameters
Type | Name | Description |
---|---|---|
MapGeneration.FacilityZone | facility | The MapGeneration.FacilityZone to convert. |
Returns
Type | Description |
---|---|
ZoneType | ZoneType. |
IsCheckpoint(RoomType)
Checks if a room type is a checkpoint.
Declaration
public static bool IsCheckpoint(this RoomType room)
Parameters
Type | Name | Description |
---|---|---|
RoomType | room | The room to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the RoomType is a checkpoint or not. |
IsGate(RoomType)
Checks if a room type is a gate.
Declaration
public static bool IsGate(this RoomType room)
Parameters
Type | Name | Description |
---|---|---|
RoomType | room | The room to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the RoomType is a gate or not. |
IsHczCheckpoint(RoomType)
Checks if a room type is a Hcz checkpoint.
Declaration
public static bool IsHczCheckpoint(this RoomType room)
Parameters
Type | Name | Description |
---|---|---|
RoomType | room | The room to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the RoomType is a Hcz checkpoint or not. |
IsLczCheckpoint(RoomType)
Checks if a room type is a Lcz checkpoint.
Declaration
public static bool IsLczCheckpoint(this RoomType room)
Parameters
Type | Name | Description |
---|---|---|
RoomType | room | The room to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the RoomType is a Lcz checkpoint or not. |
IsScp(RoomType)
Checks if a room type contains any SCP.
Declaration
public static bool IsScp(this RoomType room)
Parameters
Type | Name | Description |
---|---|---|
RoomType | room | The room to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the RoomType contains any SCP or not. |