C# Class Fungus.ConversationManager

Helper class to manage parsing and executing the conversation format.
Inheritance: MonoBehaviour
Afficher le fichier Open project: CG-Tespy/Fungus-Slot-based-Narrative-System Class Usage Examples

Protected Properties

Свойство Type Description
characters Fungus.Character[]
exitSayWait bool

Méthodes publiques

Méthode Description
ConversationManager ( ) : System.Collections
DoConversation ( string conv ) : IEnumerator

Parse and execute a conversation string.

PopulateCharacterCache ( ) : void

Caches the character objects in the scene for fast lookup during conversations.

PreParse ( string conv ) : List
PreParse ( string conv, System.Action itemAction ) : void

Méthodes protégées

Méthode Description
CreateConversationItem ( Array sayParams, string text, Character currentCharacter ) : ConversationItem

Using the string of say parameters before the ':', set the current character, position and portrait if provided.

GetSayDialog ( Character character ) : SayDialog
Parse ( string conv ) : List
Split ( string stringToSplit ) : string[]

Method Details

ConversationManager() public méthode

public ConversationManager ( ) : System.Collections
Résultat System.Collections

CreateConversationItem() protected méthode

Using the string of say parameters before the ':', set the current character, position and portrait if provided.
protected CreateConversationItem ( Array sayParams, string text, Character currentCharacter ) : ConversationItem
sayParams Array The list of say parameters.
text string The text for the character to say.
currentCharacter Character The currently speaking character.
Résultat ConversationItem

DoConversation() public méthode

Parse and execute a conversation string.
public DoConversation ( string conv ) : IEnumerator
conv string
Résultat IEnumerator

GetSayDialog() protected méthode

protected GetSayDialog ( Character character ) : SayDialog
character Character
Résultat SayDialog

Parse() protected méthode

protected Parse ( string conv ) : List
conv string
Résultat List

PopulateCharacterCache() public méthode

Caches the character objects in the scene for fast lookup during conversations.
public PopulateCharacterCache ( ) : void
Résultat void

PreParse() public static méthode

public static PreParse ( string conv ) : List
conv string
Résultat List

PreParse() public static méthode

public static PreParse ( string conv, System.Action itemAction ) : void
conv string
itemAction System.Action
Résultat void

Split() protected static méthode

protected static Split ( string stringToSplit ) : string[]
stringToSplit string
Résultat string[]

Property Details

characters protected_oe property

protected Character[],Fungus characters
Résultat Fungus.Character[]

exitSayWait protected_oe property

protected bool exitSayWait
Résultat bool