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

Public Types

enum class  DialogTypes { Regular , Small , Mission }
 

Public Member Functions

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

Static Public Member Functions

static void CreateDialog (LocalizedString text, Character speaker, IEnumerable< string > options, int[] closingOptions, string eventSprite, UInt16 actionId, bool fadeToBlack, DialogTypes dialogType, bool continueConversation=false)
 
static void SelectOption (ushort actionId, int option)
 
- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 

Public Attributes

readonly UInt16 Identifier
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 

Properties

string Text [get, set]
 
int DefaultOption [get, set]
 
Identifier SpeakerTag [get, set]
 
Identifier TargetTag [get, set]
 
bool WaitForInteraction [get, set]
 
Identifier InvokerTag [get, set]
 
bool FadeToBlack [get, set]
 
bool EndEventIfInterrupted [get, set]
 
string EventSprite [get, set]
 
DialogTypes DialogType [get, set]
 
bool ContinueConversation [get, set]
 
bool ContinueAutomatically [get, set]
 
bool IgnoreInterruptDistance [get, set]
 
Character Speaker [get]
 
List< SubactionGroupOptions [get]
 
SubactionGroup Interrupted [get]
 
static bool IsDialogOpen [get]
 
static bool FadeScreenToBlack [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 

Detailed Description

Member Enumeration Documentation

◆ DialogTypes

Enumerator
Regular 
Small 
Mission 

Definition at line 14 of file BarotraumaShared/SharedSource/Events/EventActions/ConversationAction.cs.

Constructor & Destructor Documentation

◆ ConversationAction()

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

Member Function Documentation

◆ CreateDialog()

static void Barotrauma.ConversationAction.CreateDialog ( LocalizedString  text,
Character  speaker,
IEnumerable< string >  options,
int[]  closingOptions,
string  eventSprite,
UInt16  actionId,
bool  fadeToBlack,
DialogTypes  dialogType,
bool  continueConversation = false 
)
static

◆ GetDisplayText()

LocalizedString Barotrauma.ConversationAction.GetDisplayText ( )

◆ GetEndingOptions()

int [] Barotrauma.ConversationAction.GetEndingOptions ( )

◆ GetSubActions()

override IEnumerable<EventAction> Barotrauma.ConversationAction.GetSubActions ( )
virtual

◆ IsFinished()

override bool Barotrauma.ConversationAction.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 144 of file BarotraumaShared/SharedSource/Events/EventActions/ConversationAction.cs.

◆ Reset()

override void Barotrauma.ConversationAction.Reset ( )
virtual

◆ SelectOption()

static void Barotrauma.ConversationAction.SelectOption ( ushort  actionId,
int  option 
)
static

◆ SetGoToTarget()

override bool Barotrauma.ConversationAction.SetGoToTarget ( string  goTo)
virtual

◆ ToDebugString()

override string Barotrauma.ConversationAction.ToDebugString ( )
virtual

Rich test to display in debugdraw

public override string ToDebugString()
{
return $"{ToolBox.GetDebugSymbol(isFinished)} SomeAction -> "(someInfo: {info.ColorizeObject()})";
}
Returns

Reimplemented from Barotrauma.EventAction.

Definition at line 431 of file BarotraumaShared/SharedSource/Events/EventActions/ConversationAction.cs.

◆ Update()

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

Member Data Documentation

◆ Identifier

readonly UInt16 Barotrauma.ConversationAction.Identifier

Property Documentation

◆ ContinueAutomatically

bool Barotrauma.ConversationAction.ContinueAutomatically
getset

◆ ContinueConversation

bool Barotrauma.ConversationAction.ContinueConversation
getset

◆ DefaultOption

int Barotrauma.ConversationAction.DefaultOption
getset

◆ DialogType

DialogTypes Barotrauma.ConversationAction.DialogType
getset

◆ EndEventIfInterrupted

bool Barotrauma.ConversationAction.EndEventIfInterrupted
getset

◆ EventSprite

string Barotrauma.ConversationAction.EventSprite
getset

◆ FadeScreenToBlack

bool Barotrauma.ConversationAction.FadeScreenToBlack
staticget

◆ FadeToBlack

bool Barotrauma.ConversationAction.FadeToBlack
getset

◆ IgnoreInterruptDistance

bool Barotrauma.ConversationAction.IgnoreInterruptDistance
getset

◆ Interrupted

SubactionGroup Barotrauma.ConversationAction.Interrupted
get

◆ InvokerTag

Identifier Barotrauma.ConversationAction.InvokerTag
getset

◆ IsDialogOpen

bool Barotrauma.ConversationAction.IsDialogOpen
staticget

◆ Options

List<SubactionGroup> Barotrauma.ConversationAction.Options
get

◆ Speaker

Character Barotrauma.ConversationAction.Speaker
get

◆ SpeakerTag

Identifier Barotrauma.ConversationAction.SpeakerTag
getset

◆ TargetTag

Identifier Barotrauma.ConversationAction.TargetTag
getset

◆ Text

string Barotrauma.ConversationAction.Text
getset

◆ WaitForInteraction

bool Barotrauma.ConversationAction.WaitForInteraction
getset