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

Public Member Functions

 GoTo (ScriptedEvent parentEvent, ContentXElement element)
 
override bool IsFinished (ref string goTo)
 Has the action finished. More...
 
override string ToDebugString ()
 Rich test to display in debugdraw 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 void Update (float deltaTime)
 

Properties

string Name [get, set]
 
int MaxTimes [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

Definition at line 3 of file GoTo.cs.

Constructor & Destructor Documentation

◆ GoTo()

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

Definition at line 13 of file GoTo.cs.

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.GoTo.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.

Definition at line 15 of file GoTo.cs.

◆ Reset()

override void Barotrauma.GoTo.Reset ( )
virtual

Implements Barotrauma.EventAction.

Definition at line 35 of file GoTo.cs.

◆ ToDebugString()

override string Barotrauma.GoTo.ToDebugString ( )
virtual

Rich test to display in debugdraw

public override string ToDebugString()
{
return $"{ToolBox.GetDebugSymbol(isFinished)} SomeAction -> "(someInfo: {info.ColorizeObject()})";
}
override string ToDebugString()
Rich test to display in debugdraw
Definition: GoTo.cs:25
Returns

Reimplemented from Barotrauma.EventAction.

Definition at line 25 of file GoTo.cs.

Property Documentation

◆ MaxTimes

int Barotrauma.GoTo.MaxTimes
getset

Definition at line 9 of file GoTo.cs.

◆ Name

string Barotrauma.GoTo.Name
getset

Definition at line 6 of file GoTo.cs.