Barotrauma Client Doc
Barotrauma.NPCConversation Class Reference

Public Member Functions

 NPCConversation (XElement element)
 

Static Public Member Functions

static List<(Character speaker, string line)> CreateRandom (List< Character > availableSpeakers)
 
static List<(Character speaker, string line)> CreateRandom (List< Character > availableSpeakers, IEnumerable< Identifier > requiredFlags)
 

Public Attributes

readonly string Line
 
readonly ImmutableHashSet< IdentifierAllowedJobs
 
readonly ImmutableHashSet< IdentifierFlags
 
readonly? float maxIntensity
 
readonly ImmutableArray< NPCConversationResponses
 

Detailed Description

Definition at line 35 of file NPCConversation.cs.

Constructor & Destructor Documentation

◆ NPCConversation()

Barotrauma.NPCConversation.NPCConversation ( XElement  element)

Definition at line 54 of file NPCConversation.cs.

Member Function Documentation

◆ CreateRandom() [1/2]

static List<(Character speaker, string line)> Barotrauma.NPCConversation.CreateRandom ( List< Character availableSpeakers)
static

Definition at line 166 of file NPCConversation.cs.

◆ CreateRandom() [2/2]

static List<(Character speaker, string line)> Barotrauma.NPCConversation.CreateRandom ( List< Character availableSpeakers,
IEnumerable< Identifier requiredFlags 
)
static

Definition at line 183 of file NPCConversation.cs.

Member Data Documentation

◆ AllowedJobs

readonly ImmutableHashSet<Identifier> Barotrauma.NPCConversation.AllowedJobs

Definition at line 41 of file NPCConversation.cs.

◆ Flags

readonly ImmutableHashSet<Identifier> Barotrauma.NPCConversation.Flags

Definition at line 43 of file NPCConversation.cs.

◆ Line

readonly string Barotrauma.NPCConversation.Line

Definition at line 39 of file NPCConversation.cs.

◆ maxIntensity

readonly? float Barotrauma.NPCConversation.maxIntensity

Definition at line 47 of file NPCConversation.cs.

◆ Responses

readonly ImmutableArray<NPCConversation> Barotrauma.NPCConversation.Responses

Definition at line 49 of file NPCConversation.cs.