Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.TeleportAction Class Reference

Teleports a specific entity to a specific spawn point. More...

Inheritance diagram for Barotrauma.TeleportAction:
Barotrauma.EventAction

Public Types

enum  TeleportPosition { MainSub , Outpost }
 

Public Member Functions

 TeleportAction (ScriptedEvent parentEvent, ContentXElement element)
 
override void Update (float deltaTime)
 
override bool IsFinished (ref string goToLabel)
 
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 string ToDebugString ()
 Rich test to display in debugdraw.
 

Properties

TeleportPosition Position [get, set]
 
SpawnType SpawnType [get, set]
 
string SpawnPointTag [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)
 
string GetEventDebugName ()
 

Detailed Description

Teleports a specific entity to a specific spawn point.

Member Enumeration Documentation

◆ TeleportPosition

Enumerator
MainSub 
Outpost 

Constructor & Destructor Documentation

◆ TeleportAction()

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

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.TeleportAction.IsFinished ( ref string goToLabel)

◆ Reset()

override void Barotrauma.TeleportAction.Reset ( )

◆ Update()

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

Reimplemented from Barotrauma.EventAction.

Property Documentation

◆ Position

TeleportPosition Barotrauma.TeleportAction.Position
getset

◆ SpawnPointTag

string Barotrauma.TeleportAction.SpawnPointTag
getset

◆ SpawnType

SpawnType Barotrauma.TeleportAction.SpawnType
getset

◆ TargetTag

Identifier Barotrauma.TeleportAction.TargetTag
getset

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