Class Camera
The in-game Scp079Camera.
public class Camera : IWrapper<Scp079Camera>, IWorldSpace, IPosition, IRotation
- Inheritance
-
Camera
- Implements
-
IWrapper<Scp079Camera>
- Inherited Members
- Extension Methods
Properties
Base
Gets the base PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
public Scp079Camera Base { get; }
Property Value
- Scp079Camera
GameObject
Gets the camera's UnityEngine.GameObject.
public GameObject GameObject { get; }
Property Value
- GameObject
Id
Gets the camera's id.
public ushort Id { get; }
Property Value
IsBeingUsed
Gets or sets a value indicating whether this camera is being used by SCP-079.
public bool IsBeingUsed { get; set; }
Property Value
List
Gets a IEnumerable<T> of Camera which contains all the Camera instances.
public static IReadOnlyCollection<Camera> List { get; }
Property Value
Name
Gets the camera's name.
public string Name { get; }
Property Value
Position
Gets the camera's position.
public Vector3 Position { get; }
Property Value
- Vector3
Random
Gets a random Camera.
public static Camera Random { get; }
Property Value
Room
Gets the generator's Room.
public Room Room { get; }
Property Value
Rotation
Gets or sets the camera's rotation.
public Quaternion Rotation { get; set; }
Property Value
- Quaternion
Transform
Gets the camera's UnityEngine.Transform.
public Transform Transform { get; }
Property Value
- Transform
Type
Gets the camera's CameraType.
public CameraType Type { get; }
Property Value
Zone
Gets the camera's ZoneType.
public ZoneType Zone { get; }
Property Value
Zoom
Gets the value of the Camera zoom.
public float Zoom { get; }
Property Value
Methods
Get(CameraType)
Gets a Camera given the specified cameraType
.
public static Camera Get(CameraType cameraType)
Parameters
cameraType
CameraTypeThe CameraType to search for.
Returns
- Camera
The Camera with the given CameraType or null if not found.
Get(Scp079Camera)
Gets the Camera belonging to the PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera, if any.
public static Camera Get(Scp079Camera camera079)
Parameters
camera079
Scp079CameraThe base PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
Returns
Get(IEnumerable<Scp079Camera>)
Gets a IEnumerable<T> of Camera which contains all the Camera instances given a IEnumerable<T> of PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
public static IEnumerable<Camera> Get(IEnumerable<Scp079Camera> cameras)
Parameters
cameras
IEnumerable<Scp079Camera>The IEnumerable<T> of PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
Returns
- IEnumerable<Camera>
A IEnumerable<T> of Camera.
Get(Func<Camera, bool>)
Gets a IEnumerable<T> of Camera filtered based on a predicate.
public static IEnumerable<Camera> Get(Func<Camera, bool> predicate)
Parameters
Returns
- IEnumerable<Camera>
A IEnumerable<T> of Camera which contains elements that satify the condition.
Get(string)
Gets a Camera given the specified cameraName
.
public static Camera Get(string cameraName)
Parameters
cameraName
stringThe name of the camera.
Returns
Get(uint)
Gets a Camera given the specified cameraId
.
public static Camera Get(uint cameraId)
Parameters
cameraId
uintThe camera id to be searched for.
Returns
ToString()
Returns the Camera in a human-readable format.
public override string ToString()
Returns
- string
A string containing Camera-related data.
TryGet(CameraType, out Camera)
Gets a Camera given the specified cameraType
.
public static bool TryGet(CameraType cameraType, out Camera result)
Parameters
cameraType
CameraTypeThe CameraType to search for.
result
CameraThe Camera with the given CameraType.
Returns
TryGet(Scp079Camera, out Camera)
Gets the Camera belonging to the PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera, if any.
public static bool TryGet(Scp079Camera camera, out Camera result)
Parameters
camera
Scp079CameraThe base PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
result
CameraThe instance of Camera which PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera base.
Returns
TryGet(IEnumerable<Scp079Camera>, out IEnumerable<Camera>)
Get a IEnumerable<T> of Camera which contains all the Camera instance given a IEnumerable<T> of PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
public static bool TryGet(IEnumerable<Scp079Camera> cameras, out IEnumerable<Camera> result)
Parameters
cameras
IEnumerable<Scp079Camera>the IEnumerable<T> of PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera.
result
IEnumerable<Camera>return a IEnumerable<T> of Camera, it's can be valid, or null, depending if PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera it's null or not.
Returns
- bool
a bool result if return sequence contain valid element.
TryGet(Func<Camera, bool>, out IEnumerable<Camera>)
Gets a IEnumerable<T> of Camera filtered based on a predicate.
public static bool TryGet(Func<Camera, bool> predicate, out IEnumerable<Camera> result)
Parameters
predicate
Func<Camera, bool>The condition to satify.
result
IEnumerable<Camera>A IEnumerable<T> of Camera which contains elements that satify the condition.
Returns
TryGet(string, out Camera)
Gets a Camera given the specified cameraName
.
public static bool TryGet(string cameraName, out Camera result)
Parameters
Returns
TryGet(uint, out Camera)
Gets a Camera given the specified cameraId
.
public static bool TryGet(uint cameraId, out Camera result)
Parameters
cameraId
uintThe id camera to be shearch.
result
Camerathe result of Camera, if
cameraId
is valid.