PixelCrushers.DialogueSystem.Response Class Reference

Info about a response, which is a link from one dialogue entry to another. More...

Collaboration diagram for PixelCrushers.DialogueSystem.Response:

Public Member Functions

 Response (FormattedText formattedText, DialogueEntry destinationEntry, bool enabled=true)
 Initializes a new Response. More...
 

Public Attributes

FormattedText formattedText
 The formatted text of the response. More...
 
DialogueEntry destinationEntry
 The dialogue entry that this response links to. More...
 
bool enabled
 If true (the default value), the response is clickable. More...
 

Detailed Description

Info about a response, which is a link from one dialogue entry to another.

Responses are created by the ConversationModel and passed by the ConversationView to a dialogue UI to be displayed in a response menu (for player responses) or spoken by an NPC (for NPC responses). When the player selects a response, IDialogueUI calls back with a SelectedResponseEventArgs record containing the selected response.

Constructor & Destructor Documentation

◆ Response()

PixelCrushers.DialogueSystem.Response.Response ( FormattedText  formattedText,
DialogueEntry  destinationEntry,
bool  enabled = true 
)

Initializes a new Response.

Parameters
formattedTextFormatted text.
destinationEntryDestination entry.

Member Data Documentation

◆ destinationEntry

DialogueEntry PixelCrushers.DialogueSystem.Response.destinationEntry

The dialogue entry that this response links to.

In other words, if this response is selected, the dialogue system will go to this dialogue entry.

◆ enabled

bool PixelCrushers.DialogueSystem.Response.enabled

If true (the default value), the response is clickable.

◆ formattedText

FormattedText PixelCrushers.DialogueSystem.Response.formattedText

The formatted text of the response.


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