Barotrauma Client Doc
Barotrauma.CameraTransition Class Reference

Public Member Functions

 CameraTransition (ISpatialEntity targetEntity, Camera cam, Alignment? cameraStartPos, Alignment? cameraEndPos, bool fadeOut=true, bool losFadeIn=false, float waitDuration=0f, float panDuration=10.0f, float? startZoom=null, float? endZoom=null)
 
void Stop ()
 

Public Attributes

Camera AssignedCamera
 
readonly float WaitDuration
 
float EndWaitDuration = 0.1f
 
readonly float PanDuration
 
readonly bool FadeOut
 
readonly bool LosFadeIn
 
bool AllowInterrupt = false
 
bool RemoveControlFromCharacter = true
 
bool RunWhilePaused = true
 

Properties

bool Running [get]
 

Detailed Description

Definition at line 7 of file CameraTransition.cs.

Constructor & Destructor Documentation

◆ CameraTransition()

Barotrauma.CameraTransition.CameraTransition ( ISpatialEntity  targetEntity,
Camera  cam,
Alignment cameraStartPos,
Alignment cameraEndPos,
bool  fadeOut = true,
bool  losFadeIn = false,
float  waitDuration = 0f,
float  panDuration = 10.0f,
float?  startZoom = null,
float?  endZoom = null 
)

Definition at line 38 of file CameraTransition.cs.

Member Function Documentation

◆ Stop()

void Barotrauma.CameraTransition.Stop ( )

Definition at line 68 of file CameraTransition.cs.

Member Data Documentation

◆ AllowInterrupt

bool Barotrauma.CameraTransition.AllowInterrupt = false

Definition at line 33 of file CameraTransition.cs.

◆ AssignedCamera

Camera Barotrauma.CameraTransition.AssignedCamera

Definition at line 17 of file CameraTransition.cs.

◆ EndWaitDuration

float Barotrauma.CameraTransition.EndWaitDuration = 0.1f

Definition at line 24 of file CameraTransition.cs.

◆ FadeOut

readonly bool Barotrauma.CameraTransition.FadeOut

Definition at line 26 of file CameraTransition.cs.

◆ LosFadeIn

readonly bool Barotrauma.CameraTransition.LosFadeIn

Definition at line 27 of file CameraTransition.cs.

◆ PanDuration

readonly float Barotrauma.CameraTransition.PanDuration

Definition at line 25 of file CameraTransition.cs.

◆ RemoveControlFromCharacter

bool Barotrauma.CameraTransition.RemoveControlFromCharacter = true

Definition at line 34 of file CameraTransition.cs.

◆ RunWhilePaused

bool Barotrauma.CameraTransition.RunWhilePaused = true

Definition at line 36 of file CameraTransition.cs.

◆ WaitDuration

readonly float Barotrauma.CameraTransition.WaitDuration

Definition at line 23 of file CameraTransition.cs.

Property Documentation

◆ Running

bool Barotrauma.CameraTransition.Running
get

Definition at line 11 of file CameraTransition.cs.