Barotrauma Client Doc
Barotrauma.EventObjectiveAction Class Reference
Inheritance diagram for Barotrauma.EventObjectiveAction:
Barotrauma.EventAction

Public Types

enum class  SegmentActionType {
  Trigger , Add , AddIfNotFound , Complete ,
  CompleteAndRemove , Remove , Fail , FailAndRemove
}
 

Public Member Functions

 EventObjectiveAction (ScriptedEvent parentEvent, ContentXElement element)
 
override void Update (float deltaTime)
 
override bool IsFinished (ref string goToLabel)
 Has the action finished. More...
 
override void Reset ()
 
- Public Member Functions inherited from Barotrauma.EventAction
 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
virtual bool SetGoToTarget (string goTo)
 
virtual bool CanBeFinished ()
 
virtual IEnumerable< EventActionGetSubActions ()
 
virtual string ToDebugString ()
 Rich test to display in debugdraw More...
 

Properties

SegmentActionType Type [get, set]
 
Identifier Identifier [get, set]
 
Identifier ObjectiveTag [get, set]
 
bool CanBeCompleted [get, set]
 
Identifier ParentObjectiveId [get, set]
 
bool AutoPlayVideo [get, set]
 
Identifier TextTag [get, set]
 
string VideoFile [get, set]
 
int Width [get, set]
 
int Height [get, set]
 
Identifier TargetTag [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Detailed Description

Member Enumeration Documentation

◆ SegmentActionType

Enumerator
Trigger 
Add 
AddIfNotFound 
Complete 
CompleteAndRemove 
Remove 
Fail 
FailAndRemove 

Definition at line 5 of file BarotraumaShared/SharedSource/Events/EventActions/EventObjectiveAction.cs.

Constructor & Destructor Documentation

◆ EventObjectiveAction()

Barotrauma.EventObjectiveAction.EventObjectiveAction ( ScriptedEvent  parentEvent,
ContentXElement  element 
)

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.EventObjectiveAction.IsFinished ( ref string  goToLabel)
virtual

Has the action finished.

Parameters
goToLabelIf null or empty, the event moves to the next action. Otherwise it moves to the specified label.
Returns

Implements Barotrauma.EventAction.

◆ Reset()

override void Barotrauma.EventObjectiveAction.Reset ( )
virtual

◆ Update()

override void Barotrauma.EventObjectiveAction.Update ( float  deltaTime)
virtual

Property Documentation

◆ AutoPlayVideo

bool Barotrauma.EventObjectiveAction.AutoPlayVideo
getset

◆ CanBeCompleted

bool Barotrauma.EventObjectiveAction.CanBeCompleted
getset

◆ Height

int Barotrauma.EventObjectiveAction.Height
getset

◆ Identifier

Identifier Barotrauma.EventObjectiveAction.Identifier
getset

◆ ObjectiveTag

Identifier Barotrauma.EventObjectiveAction.ObjectiveTag
getset

◆ ParentObjectiveId

Identifier Barotrauma.EventObjectiveAction.ParentObjectiveId
getset

◆ TargetTag

Identifier Barotrauma.EventObjectiveAction.TargetTag
getset

◆ TextTag

Identifier Barotrauma.EventObjectiveAction.TextTag
getset

◆ Type

SegmentActionType Barotrauma.EventObjectiveAction.Type
getset

◆ VideoFile

string Barotrauma.EventObjectiveAction.VideoFile
getset

◆ Width

int Barotrauma.EventObjectiveAction.Width
getset