Table of Contents

Class RoomExtensions

Namespace
Exiled.API.Extensions
Assembly
Exiled.API.dll

A set of extensions for RoomType and ZoneType.

public static class RoomExtensions
Inheritance
RoomExtensions
Inherited Members

Methods

GetZone(ZoneType)

Converts the provided ZoneType into the corresponding MapGeneration.FacilityZone.

public static FacilityZone GetZone(this ZoneType facility)

Parameters

facility ZoneType

The ZoneType to convert.

Returns

FacilityZone

FacilityZone.

GetZone(FacilityZone)

Converts the provided MapGeneration.FacilityZone into the corresponding ZoneType.

public static ZoneType GetZone(this FacilityZone facility)

Parameters

facility FacilityZone

The MapGeneration.FacilityZone to convert.

Returns

ZoneType

ZoneType.

IsCheckpoint(RoomType)

Checks if a room type is a checkpoint.

public static bool IsCheckpoint(this RoomType room)

Parameters

room RoomType

The room to be checked.

Returns

bool

Returns whether the RoomType is a checkpoint.

IsGate(RoomType)

Checks if a room type is a gate.

public static bool IsGate(this RoomType room)

Parameters

room RoomType

The room to be checked.

Returns

bool

Returns whether the RoomType is a gate.

IsHczCheckpoint(RoomType)

Checks if a room type is a Hcz checkpoint.

public static bool IsHczCheckpoint(this RoomType room)

Parameters

room RoomType

The room to be checked.

Returns

bool

Returns whether the RoomType is a Hcz checkpoint.

IsLczCheckpoint(RoomType)

Checks if a room type is a Lcz checkpoint.

public static bool IsLczCheckpoint(this RoomType room)

Parameters

room RoomType

The room to be checked.

Returns

bool

Returns whether the RoomType is a Lcz checkpoint.

IsScp(RoomType)

Checks if a room type contains any SCP.

public static bool IsScp(this RoomType room)

Parameters

room RoomType

The room to be checked.

Returns

bool

Returns whether the RoomType contains any SCP.