The current state of a conversation, which can also be thought of as the current position in the dialogue tree. More...
Public Member Functions | |
ConversationState (Subtitle subtitle, Response[] npcResponses, Response[] pcResponses, bool isGroup=false) | |
Initializes a new ConversationState. More... | |
Public Attributes | |
Subtitle | subtitle |
The subtitle of the current dialogue entry. More... | |
Response[] | npcResponses |
The NPC responses linked from the current dialogue entry. More... | |
Response[] | pcResponses |
The PC responses linked from the current dialogue entry. More... | |
Properties | |
bool | HasNPCResponse [get] |
Indicates whether the current state has any NPC responses. More... | |
Response? | FirstNPCResponse [get] |
Gets the first NPC response. More... | |
bool | HasPCResponses [get] |
Indicates whether the current state has any PC responses. More... | |
bool | HasPCAutoResponse [get] |
Indicates whether the current state has a PC auto-response, which means it has only a single response and that response does not specify "force menu." More... | |
Response? | PCAutoResponse [get] |
Gets the PC auto response. More... | |
bool | HasAnyResponses [get] |
Indicates whether this state has any responses (PC or NPC). More... | |
bool | IsGroup [get, set] |
Indicates whether this state corresponds to a group dialogue entry. More... | |
The current state of a conversation, which can also be thought of as the current position in the dialogue tree.
PixelCrushers.DialogueSystem.ConversationState.ConversationState | ( | Subtitle | subtitle, |
Response[] | npcResponses, | ||
Response[] | pcResponses, | ||
bool | isGroup = false |
||
) |
Initializes a new ConversationState.
subtitle | Subtitle of the current dialogue entry. |
npcResponses | NPC responses. |
pcResponses | PC responses. |
Response [] PixelCrushers.DialogueSystem.ConversationState.npcResponses |
The NPC responses linked from the current dialogue entry.
This array may be empty. Typically, a conversation state will have either NPC responses or PC responses but not both.
Response [] PixelCrushers.DialogueSystem.ConversationState.pcResponses |
The PC responses linked from the current dialogue entry.
This array may be empty. Typically, a conversation state will have either NPC responses or PC responses but not both.
Subtitle PixelCrushers.DialogueSystem.ConversationState.subtitle |
The subtitle of the current dialogue entry.
|
get |
Gets the first NPC response.
The first NPC response.
|
get |
Indicates whether this state has any responses (PC or NPC).
true
if this instance has any responses; otherwise, false
.
|
get |
Indicates whether the current state has any NPC responses.
true
if this instance has any NPC responses; otherwise, false
.
|
get |
Indicates whether the current state has a PC auto-response, which means it has only a single response and that response does not specify "force menu."
true
if this instance has PC auto response; otherwise, false
.
|
get |
Indicates whether the current state has any PC responses.
true
if this instance has PC responses; otherwise, false
.
|
getset |
Indicates whether this state corresponds to a group dialogue entry.
true
if a group; otherwise, false
.
|
get |
Gets the PC auto response.
The PC auto response, or null if the state doesn't have one.