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

Public Member Functions

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

Properties

Identifier NPCTag [get, set]
 
bool Wait [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 7 of file NPCWaitAction.cs.

Constructor & Destructor Documentation

◆ NPCWaitAction()

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

Definition at line 18 of file NPCWaitAction.cs.

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.NPCWaitAction.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 54 of file NPCWaitAction.cs.

◆ Reset()

override void Barotrauma.NPCWaitAction.Reset ( )
virtual

Implements Barotrauma.EventAction.

Definition at line 59 of file NPCWaitAction.cs.

◆ ToDebugString()

override string Barotrauma.NPCWaitAction.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
Returns

Reimplemented from Barotrauma.EventAction.

Definition at line 84 of file NPCWaitAction.cs.

◆ Update()

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

Reimplemented from Barotrauma.EventAction.

Definition at line 22 of file NPCWaitAction.cs.

Property Documentation

◆ NPCTag

Identifier Barotrauma.NPCWaitAction.NPCTag
getset

Definition at line 10 of file NPCWaitAction.cs.

◆ Wait

bool Barotrauma.NPCWaitAction.Wait
getset

Definition at line 13 of file NPCWaitAction.cs.