Class Lift
The in-game lift.
public class Lift : IWrapper<ElevatorChamber>, IWorldSpace, IPosition, IRotation
- Inheritance
-
Lift
- Implements
-
IWrapper<ElevatorChamber>
- Inherited Members
- Extension Methods
Properties
AnimationTime
Gets or sets the AnimationTime.
public float AnimationTime { get; set; }
Property Value
Base
Gets the base Interactables.Interobjects.ElevatorChamber.
public ElevatorChamber Base { get; }
Property Value
- ElevatorChamber
Bounds
Gets the UnityEngine.Bounds representing the space inside the lift.
public Bounds Bounds { get; }
Property Value
- Bounds
CurrentDestination
Gets the CurrentDestination.
public ElevatorDoor CurrentDestination { get; }
Property Value
CurrentLevel
Gets the CurrentLevel.
public int CurrentLevel { get; }
Property Value
DoorCloseTime
Gets the DoorCloseTime.
public float DoorCloseTime { get; }
Property Value
DoorOpenTime
Gets the DoorOpenTime.
public float DoorOpenTime { get; }
Property Value
Doors
Gets a value of the internal doors list.
public IReadOnlyCollection<ElevatorDoor> Doors { get; }
Property Value
GameObject
Gets the UnityEngine.GameObject of the lift.
public GameObject GameObject { get; }
Property Value
- GameObject
Group
Gets the Interactables.Interobjects.ElevatorGroup.
public ElevatorGroup Group { get; }
Property Value
- ElevatorGroup
IsLocked
Gets a value indicating whether the lift is locked.
public bool IsLocked { get; }
Property Value
IsMoving
Gets a value indicating whether the lift is currently moving.
public bool IsMoving { get; }
Property Value
IsOperative
Gets a value indicating whether the lift is operative.
public bool IsOperative { get; }
Property Value
List
Gets a IEnumerable<T> of Lift which contains all the Lift instances.
public static IReadOnlyCollection<Lift> List { get; }
Property Value
MoveTime
Gets the total MoveTime.
public float MoveTime { get; }
Property Value
Name
Gets the lift's name.
public string Name { get; }
Property Value
Players
Gets a IEnumerable<T> of Player in the Room.
public IEnumerable<Player> Players { get; }
Property Value
Position
Gets or sets the lift's position.
public Vector3 Position { get; set; }
Property Value
- Vector3
Random
Gets a random Lift.
public static Lift Random { get; }
Property Value
Rotation
Gets or sets the lift's rotation.
public Quaternion Rotation { get; set; }
Property Value
- Quaternion
RotationTime
Gets the RotationTime.
public float RotationTime { get; }
Property Value
Status
Gets or sets the lift's Interactables.Interobjects.ElevatorChamber status.
public ElevatorChamber.ElevatorSequence Status { get; set; }
Property Value
- ElevatorChamber.ElevatorSequence
Transform
Gets the lift's UnityEngine.Transform.
public Transform Transform { get; }
Property Value
- Transform
Type
Gets the lift's ElevatorType.
public ElevatorType Type { get; }
Property Value
Methods
ChangeLock(DoorLockReason)
Changes lock of the lift.
public void ChangeLock(DoorLockReason lockReason)
Parameters
lockReason
DoorLockReasonType of lift lockdown.
~Lift()
Finalizes an instance of the Lift class.
protected ~Lift()
Get(ElevatorType)
Gets the Lift corresponding to the specified ElevatorType, if any.
public static Lift Get(ElevatorType type)
Parameters
type
ElevatorTypeThe ElevatorType.
Returns
Get(ElevatorChamber)
Gets the Lift belonging to the Interactables.Interobjects.ElevatorChamber, if any.
public static Lift Get(ElevatorChamber elevator)
Parameters
elevator
ElevatorChamberThe Interactables.Interobjects.ElevatorChamber instance.
Returns
Get(ElevatorSequence)
Gets a IEnumerable<T> of Lift which contains all the Lift instances from the specified Status.
public static IEnumerable<Lift> Get(ElevatorChamber.ElevatorSequence status)
Parameters
status
ElevatorChamber.ElevatorSequenceThe specified Interactables.Interobjects.ElevatorChamber.
Returns
Get(ElevatorGroup)
Gets the Lift corresponding to the specified Interactables.Interobjects.ElevatorGroup, if any.
public static Lift Get(ElevatorGroup type)
Parameters
type
ElevatorGroupThe Interactables.Interobjects.ElevatorGroup.
Returns
Get(Func<Lift, bool>)
Gets a IEnumerable<T> of Lift filtered based on a predicate.
public static IEnumerable<Lift> Get(Func<Lift, bool> predicate)
Parameters
Returns
- IEnumerable<Lift>
A IEnumerable<T> of Lift which contains elements that satify the condition.
Get(string)
Gets the Lift corresponding to the specified name, if any.
public static Lift Get(string name)
Parameters
name
stringThe lift's name.
Returns
Get(GameObject)
Gets the Lift belonging to the UnityEngine.GameObject, if any.
public static Lift Get(GameObject gameObject)
Parameters
gameObject
GameObjectThe UnityEngine.GameObject.
Returns
Get(Vector3)
Gets the Lift belonging to the UnityEngine.Vector3, if any.
public static Lift Get(Vector3 position)
Parameters
position
Vector3The UnityEngine.Vector3.
Returns
IsInElevator(Vector3)
Returns whether the provided position is inside the lift.
public bool IsInElevator(Vector3 point)
Parameters
point
Vector3The position.
Returns
ToString()
Returns the Lift in a human-readable format.
public override string ToString()
Returns
- string
A string containing Lift-related data.
TryMeltPlayer(Player)
Tries to melt a Player.
public static bool TryMeltPlayer(Player player)
Parameters
Returns
- See Also
TryStart(int, bool)
Tries to start the lift.
public void TryStart(int level, bool allowQueueing = false)