Search Results for

    Show / Hide Table of Contents

    Class Room

    The in-game room.

    Inheritance
    System.Object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Room
    Implements
    IWorldSpace
    IPosition
    IRotation
    Inherited Members
    UnityEngine.MonoBehaviour.IsInvoking()
    UnityEngine.MonoBehaviour.CancelInvoke()
    UnityEngine.MonoBehaviour.Invoke(System.String, System.Single)
    UnityEngine.MonoBehaviour.InvokeRepeating(System.String, System.Single, System.Single)
    UnityEngine.MonoBehaviour.CancelInvoke(System.String)
    UnityEngine.MonoBehaviour.IsInvoking(System.String)
    UnityEngine.MonoBehaviour.StartCoroutine(System.String)
    UnityEngine.MonoBehaviour.StartCoroutine(System.String, System.Object)
    UnityEngine.MonoBehaviour.StartCoroutine(System.Collections.IEnumerator)
    UnityEngine.MonoBehaviour.StartCoroutine_Auto(System.Collections.IEnumerator)
    UnityEngine.MonoBehaviour.StopCoroutine(System.Collections.IEnumerator)
    UnityEngine.MonoBehaviour.StopCoroutine(UnityEngine.Coroutine)
    UnityEngine.MonoBehaviour.StopCoroutine(System.String)
    UnityEngine.MonoBehaviour.StopAllCoroutines()
    UnityEngine.MonoBehaviour.print(System.Object)
    UnityEngine.MonoBehaviour.useGUILayout
    UnityEngine.Behaviour.enabled
    UnityEngine.Behaviour.isActiveAndEnabled
    UnityEngine.Component.GetComponent(System.Type)
    UnityEngine.Component.GetComponent<T>()
    UnityEngine.Component.TryGetComponent(System.Type, UnityEngine.Component)
    UnityEngine.Component.TryGetComponent<T>(T)
    UnityEngine.Component.GetComponent(System.String)
    UnityEngine.Component.GetComponentInChildren(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentInChildren(System.Type)
    UnityEngine.Component.GetComponentInChildren<T>(System.Boolean)
    UnityEngine.Component.GetComponentInChildren<T>()
    UnityEngine.Component.GetComponentsInChildren(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentsInChildren(System.Type)
    UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean)
    UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean, System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponentsInChildren<T>()
    UnityEngine.Component.GetComponentsInChildren<T>(System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponentInParent(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentInParent(System.Type)
    UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
    UnityEngine.Component.GetComponentInParent<T>()
    UnityEngine.Component.GetComponentsInParent(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentsInParent(System.Type)
    UnityEngine.Component.GetComponentsInParent<T>(System.Boolean)
    UnityEngine.Component.GetComponentsInParent<T>(System.Boolean, System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponentsInParent<T>()
    UnityEngine.Component.GetComponents(System.Type)
    UnityEngine.Component.GetComponents(System.Type, System.Collections.Generic.List<UnityEngine.Component>)
    UnityEngine.Component.GetComponents<T>(System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponents<T>()
    UnityEngine.Component.CompareTag(System.String)
    UnityEngine.Component.SendMessageUpwards(System.String, System.Object, UnityEngine.SendMessageOptions)
    UnityEngine.Component.SendMessageUpwards(System.String, System.Object)
    UnityEngine.Component.SendMessageUpwards(System.String)
    UnityEngine.Component.SendMessageUpwards(System.String, UnityEngine.SendMessageOptions)
    UnityEngine.Component.SendMessage(System.String, System.Object)
    UnityEngine.Component.SendMessage(System.String)
    UnityEngine.Component.SendMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
    UnityEngine.Component.SendMessage(System.String, UnityEngine.SendMessageOptions)
    UnityEngine.Component.BroadcastMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
    UnityEngine.Component.BroadcastMessage(System.String, System.Object)
    UnityEngine.Component.BroadcastMessage(System.String)
    UnityEngine.Component.BroadcastMessage(System.String, UnityEngine.SendMessageOptions)
    UnityEngine.Component.transform
    UnityEngine.Component.gameObject
    UnityEngine.Component.tag
    UnityEngine.Object.GetInstanceID()
    UnityEngine.Object.GetHashCode()
    UnityEngine.Object.Equals(System.Object)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate(UnityEngine.Object)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
    UnityEngine.Object.Instantiate<T>(T)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
    UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
    UnityEngine.Object.Destroy(UnityEngine.Object)
    UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
    UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
    UnityEngine.Object.FindObjectsOfType(System.Type)
    UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
    UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
    UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
    UnityEngine.Object.DestroyObject(UnityEngine.Object)
    UnityEngine.Object.FindSceneObjectsOfType(System.Type)
    UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
    UnityEngine.Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
    UnityEngine.Object.FindObjectOfType(System.Type)
    UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
    UnityEngine.Object.name
    UnityEngine.Object.hideFlags
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.API.Features
    Assembly: Exiled.API.dll
    Syntax
    public class Room : MonoBehaviour, IWorldSpace, IPosition, IRotation

    Properties

    | Improve this Doc View Source

    AreLightsOff

    Gets or sets a value indicating whether or not the lights in this room are currently off.

    Declaration
    public bool AreLightsOff { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Cameras

    Gets a System.Collections.Generic.IReadOnlyCollection<T> of Camera in the Room.

    Declaration
    public IReadOnlyCollection<Camera> Cameras { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<Camera>
    | Improve this Doc View Source

    Color

    Gets or sets the color of the room's lights by changing the warhead color.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    UnityEngine.Color
    Remarks

    Will return UnityEngine.Color.clear when RoomLightController is null.

    | Improve this Doc View Source

    Doors

    Gets a System.Collections.Generic.IReadOnlyCollection<T> of Door in the Room.

    Declaration
    public IReadOnlyCollection<Door> Doors { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<Door>
    | Improve this Doc View Source

    GameObject

    Gets the Room UnityEngine.GameObject.

    Declaration
    public GameObject GameObject { get; }
    Property Value
    Type Description
    UnityEngine.GameObject
    | Improve this Doc View Source

    Identifier

    Gets a reference to the room's MapGeneration.RoomIdentifier.

    Declaration
    public RoomIdentifier Identifier { get; }
    Property Value
    Type Description
    MapGeneration.RoomIdentifier
    | Improve this Doc View Source

    List

    Gets a System.Collections.Generic.IEnumerable<T> of Room which contains all the Room instances.

    Declaration
    public static IReadOnlyCollection<Room> List { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<Room>
    | Improve this Doc View Source

    Name

    Gets the Room name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Pickups

    Gets a System.Collections.Generic.IEnumerable<T> of Pickup in the Room.

    Declaration
    public IEnumerable<Pickup> Pickups { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<Pickup>
    | Improve this Doc View Source

    Players

    Gets a System.Collections.Generic.IEnumerable<T> of Player in the Room.

    Declaration
    public IEnumerable<Player> Players { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<Player>
    | Improve this Doc View Source

    Position

    Gets the Room position.

    Declaration
    public Vector3 Position { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    RoomLightController

    Gets the room's FlickerableLightController.

    Declaration
    public RoomLightController RoomLightController { get; }
    Property Value
    Type Description
    RoomLightController
    | Improve this Doc View Source

    RoomLightControllerNetIdentity

    Gets the FlickerableLightController's NetworkIdentity.

    Declaration
    public NetworkIdentity RoomLightControllerNetIdentity { get; }
    Property Value
    Type Description
    Mirror.NetworkIdentity
    | Improve this Doc View Source

    RoomLightControllers

    Gets a System.Collections.Generic.IReadOnlyCollection<T> of RoomLightController in the Room.

    Declaration
    public IReadOnlyCollection<RoomLightController> RoomLightControllers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<RoomLightController>
    Remarks

    Using that will make sense only for rooms with more than one light controller, in other cases better to use RoomLightController.

    | Improve this Doc View Source

    RoomName

    Gets the MapGeneration.RoomName enum representing this room.

    Declaration
    public RoomName RoomName { get; }
    Property Value
    Type Description
    MapGeneration.RoomName
    Remarks

    This property is the internal MapGeneration.RoomName of the room. For the actual string of the Room's name, see Name.

    See Also
    Name
    | Improve this Doc View Source

    RoomShape

    Gets the room's MapGeneration.RoomShape.

    Declaration
    public RoomShape RoomShape { get; }
    Property Value
    Type Description
    MapGeneration.RoomShape
    | Improve this Doc View Source

    Rotation

    Gets the Room rotation.

    Declaration
    public Quaternion Rotation { get; }
    Property Value
    Type Description
    UnityEngine.Quaternion
    | Improve this Doc View Source

    Speakers

    Gets a System.Collections.Generic.IReadOnlyCollection<T> of PlayerRoles.PlayableScps.Scp079.Scp079Speaker in the Room.

    Declaration
    public IReadOnlyCollection<Scp079Speaker> Speakers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<PlayerRoles.PlayableScps.Scp079.Scp079Speaker>
    | Improve this Doc View Source

    TeslaGate

    Gets a reference to the TeslaGate in the room, or null if this room does not contain one.

    Declaration
    public TeslaGate TeslaGate { get; }
    Property Value
    Type Description
    TeslaGate
    | Improve this Doc View Source

    Transform

    Gets the Room UnityEngine.Transform.

    Declaration
    public Transform Transform { get; }
    Property Value
    Type Description
    UnityEngine.Transform
    | Improve this Doc View Source

    Type

    Gets the RoomType.

    Declaration
    public RoomType Type { get; }
    Property Value
    Type Description
    RoomType
    | Improve this Doc View Source

    Windows

    Gets a System.Collections.Generic.IReadOnlyCollection<T> of Window in the Room.

    Declaration
    public IReadOnlyCollection<Window> Windows { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<Window>
    | Improve this Doc View Source

    Zone

    Gets the ZoneType in which the room is located.

    Declaration
    public ZoneType Zone { get; }
    Property Value
    Type Description
    ZoneType

    Methods

    | Improve this Doc View Source

    Blackout(Single, DoorLockType)

    Locks all the doors and turns off all lights in the room.

    Declaration
    public void Blackout(float duration, DoorLockType lockType = DoorLockType.Regular079)
    Parameters
    Type Name Description
    System.Single duration

    Duration in seconds, or -1 for permanent blackout.

    DoorLockType lockType

    DoorLockType of the blackout.

    See Also
    TurnOffAllLights(Single, ZoneType)
    TurnOffAllLights(Single, IEnumerable<ZoneType>)
    | Improve this Doc View Source

    FindParentRoom(GameObject)

    Tries to find the room that a GameObject is inside, first using the Transform's parents, then using a Raycast if no room was found.

    Declaration
    public static Room FindParentRoom(GameObject objectInRoom)
    Parameters
    Type Name Description
    UnityEngine.GameObject objectInRoom

    The GameObject inside the room.

    Returns
    Type Description
    Room

    The Room that the GameObject is located inside. Can be null.

    See Also
    Get(Vector3)
    | Improve this Doc View Source

    Get(RoomType)

    Gets a Room given the specified RoomType.

    Declaration
    public static Room Get(RoomType roomType)
    Parameters
    Type Name Description
    RoomType roomType

    The RoomType to search for.

    Returns
    Type Description
    Room

    The Room with the given RoomType or null if not found.

    | Improve this Doc View Source

    Get(ZoneType)

    Gets a System.Collections.Generic.IEnumerable<T> of Room given the specified ZoneType.

    Declaration
    public static IEnumerable<Room> Get(ZoneType zoneType)
    Parameters
    Type Name Description
    ZoneType zoneType

    The ZoneType to search for.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Room>

    The Room with the given ZoneType or null if not found.

    | Improve this Doc View Source

    Get(RoomIdentifier)

    Gets a Room from a given Identifier.

    Declaration
    public static Room Get(RoomIdentifier roomIdentifier)
    Parameters
    Type Name Description
    MapGeneration.RoomIdentifier roomIdentifier

    The Identifier to search with.

    Returns
    Type Description
    Room

    The Room of the given identified, if any. Can be null.

    | Improve this Doc View Source

    Get(RelativePosition)

    Gets a Room given the specified RelativePositioning.RelativePosition.

    Declaration
    public static Room Get(RelativePosition position)
    Parameters
    Type Name Description
    RelativePositioning.RelativePosition position

    The RelativePositioning.RelativePosition to search for.

    Returns
    Type Description
    Room

    The Room with the given RelativePositioning.RelativePosition or null if not found.

    | Improve this Doc View Source

    Get(RoomLightController)

    Gets a Room from a given MapGeneration.RoomIdentifier.

    Declaration
    public static Room Get(RoomLightController flickerableLightController)
    Parameters
    Type Name Description
    RoomLightController flickerableLightController

    The RoomLightController to search with.

    Returns
    Type Description
    Room

    The Room of the given identified, if any. Can be null.

    | Improve this Doc View Source

    Get(Func<Room, Boolean>)

    Gets a System.Collections.Generic.IEnumerable<T> of Room filtered based on a predicate.

    Declaration
    public static IEnumerable<Room> Get(Func<Room, bool> predicate)
    Parameters
    Type Name Description
    System.Func<Room, System.Boolean> predicate

    The condition to satify.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Room>

    A System.Collections.Generic.IEnumerable<T> of Room which contains elements that satify the condition.

    | Improve this Doc View Source

    Get(Vector3)

    Gets a Room given the specified UnityEngine.Vector3.

    Declaration
    public static Room Get(Vector3 position)
    Parameters
    Type Name Description
    UnityEngine.Vector3 position

    The UnityEngine.Vector3 to search for.

    Returns
    Type Description
    Room

    The Room with the given UnityEngine.Vector3 or null if not found.

    | Improve this Doc View Source

    LocalPosition(Vector3)

    Returns the local space position, based on a world space position.

    Declaration
    public Vector3 LocalPosition(Vector3 position)
    Parameters
    Type Name Description
    UnityEngine.Vector3 position

    World position.

    Returns
    Type Description
    UnityEngine.Vector3

    Local position, based on the room.

    | Improve this Doc View Source

    LockDown(Single, DoorLockType)

    Locks all the doors in the room.

    Declaration
    public void LockDown(float duration, DoorLockType lockType = DoorLockType.Regular079)
    Parameters
    Type Name Description
    System.Single duration

    Duration in seconds, or -1 for permanent lockdown.

    DoorLockType lockType

    DoorLockType of the lockdown.

    See Also
    LockAll(System.Single, ZoneType, DoorLockType)
    LockAll(System.Single, System.Collections.Generic.IEnumerable<ZoneType>, DoorLockType)
    | Improve this Doc View Source

    Random(ZoneType)

    Gets a random Room.

    Declaration
    public static Room Random(ZoneType zoneType = ZoneType.Unspecified)
    Parameters
    Type Name Description
    ZoneType zoneType

    Filters by ZoneType.

    Returns
    Type Description
    Room

    Room object.

    | Improve this Doc View Source

    ResetColor()

    Resets the room color to default.

    Declaration
    public void ResetColor()
    | Improve this Doc View Source

    ToString()

    Returns the Room in a human-readable format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string containing Room-related data.

    Overrides
    UnityEngine.Object.ToString()
    | Improve this Doc View Source

    TurnOffLights(Single)

    Flickers the room's lights off for a duration.

    Declaration
    public void TurnOffLights(float duration = -1F)
    Parameters
    Type Name Description
    System.Single duration

    Duration in seconds, or -1 for an indefinite duration.

    | Improve this Doc View Source

    UnlockAll()

    Unlocks all the doors in the room.

    Declaration
    public void UnlockAll()
    See Also
    UnlockAll()
    UnlockAll(ZoneType)
    UnlockAll(System.Collections.Generic.IEnumerable<ZoneType>)
    UnlockAll(System.Func<Door, System.Boolean>)
    | Improve this Doc View Source

    WorldPosition(Vector3)

    Returns the World position, based on a local space position.

    Declaration
    public Vector3 WorldPosition(Vector3 offset)
    Parameters
    Type Name Description
    UnityEngine.Vector3 offset

    Local position.

    Returns
    Type Description
    UnityEngine.Vector3

    World position, based on the room.

    Implements

    IWorldSpace
    IPosition
    IRotation

    Extension Methods

    MirrorExtensions.SetRoomColorForTargetOnly(Room, Player, Color)
    MirrorExtensions.SetRoomLightIntensityForTargetOnly(Room, Player, Single)
    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX