Barotrauma Client
Loading...
Searching...
No Matches
Barotrauma.GoTo Class Reference

Makes the event jump to a Label somewhere else in the event. More...

Inheritance diagram for Barotrauma.GoTo:
Barotrauma.EventAction

Public Member Functions

 GoTo (ScriptedEvent parentEvent, ContentXElement element)
 
override bool IsFinished (ref string goTo)
 
override string ToDebugString ()
 Rich test to display in debugdraw.
 
override void Reset ()
 
- Public Member Functions inherited from Barotrauma.EventAction
 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
bool IsFinished (ref string goToLabel)
 Has the action finished.
 
virtual bool SetGoToTarget (string goTo)
 
void Reset ()
 
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)
 
string GetEventDebugName ()
 

Detailed Description

Makes the event jump to a Label somewhere else in the event.

Constructor & Destructor Documentation

◆ GoTo()

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

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.GoTo.IsFinished ( ref string goTo)

◆ Reset()

override void Barotrauma.GoTo.Reset ( )

◆ 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:28
Returns

Reimplemented from Barotrauma.EventAction.

Property Documentation

◆ MaxTimes

int Barotrauma.GoTo.MaxTimes
getset

◆ Name

string Barotrauma.GoTo.Name
getset

The documentation for this class was generated from the following file: