Mediates between a ConversationModel (data) and ConversationView (user interface) to run a conversation.
More...
Mediates between a ConversationModel (data) and ConversationView (user interface) to run a conversation.
◆ ConversationController()
Initializes a new ConversationController and starts the conversation in the model.
Also sends OnConversationStart messages to the participants.
- Parameters
-
model | Data model of the conversation. |
view | View to use to provide a user interface for the conversation. |
endConversationHandler | Handler to call to inform when the conversation is done. |
◆ Close()
void PixelCrushers.DialogueSystem.ConversationController.Close |
( |
| ) |
|
Closes the currently-running conversation, which also sends OnConversationEnd messages to the participants.
◆ EndConversationDelegate()
delegate void PixelCrushers.DialogueSystem.ConversationController.EndConversationDelegate |
( |
ConversationController |
ConversationController | ) |
|
◆ GotoFirstResponse()
void PixelCrushers.DialogueSystem.ConversationController.GotoFirstResponse |
( |
| ) |
|
Follows the first PC response in the current state.
◆ GotoRandomResponse()
void PixelCrushers.DialogueSystem.ConversationController.GotoRandomResponse |
( |
| ) |
|
Follows a random PC response in the current state.
◆ GotoState()
void PixelCrushers.DialogueSystem.ConversationController.GotoState |
( |
ConversationState |
state | ) |
|
Goes to a conversation state.
If the state is null
, the conversation ends.
- Parameters
-
◆ SetActorPortraitTexture()
void PixelCrushers.DialogueSystem.ConversationController.SetActorPortraitTexture |
( |
string |
actorName, |
|
|
Texture2D |
portraitTexture |
|
) |
| |
Sets the portrait texture to use in the UI for an actor.
This is used when the SetPortrait() sequencer command changes an actor's image.
- Parameters
-
actorName | Actor name. |
portraitTexture | Portrait texture. |
◆ UpdateResponses()
void PixelCrushers.DialogueSystem.ConversationController.UpdateResponses |
( |
| ) |
|
◆ ActorInfo
CharacterInfo? PixelCrushers.DialogueSystem.ConversationController.ActorInfo |
|
get |
Gets the actor info for this conversation.
The actor info.
◆ ConversantInfo
CharacterInfo? PixelCrushers.DialogueSystem.ConversationController.ConversantInfo |
|
get |
Gets the conversant info for this conversation.
The conversant info.
◆ ConversationModel
ConversationModel PixelCrushers.DialogueSystem.ConversationController.ConversationModel |
|
get |
◆ ConversationView
ConversationView PixelCrushers.DialogueSystem.ConversationController.ConversationView |
|
get |
◆ IsActive
bool PixelCrushers.DialogueSystem.ConversationController.IsActive |
|
get |
Indicates whether the ConversationController is currently running a conversation.
true
if a conversation is active; false
if the conversation is done.
◆ IsDialogueEntryValid
Gets or sets the IsDialogueEntryValid delegate.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Core/Model-View-Controller/Controller/ConversationController.cs