Class ConversationBuilder
Helper class to construct Conversations.
Inheritance
Inherited Members
Namespace: GDA
Assembly: Assembly-CSharp.dll
Syntax
public class ConversationBuilder
Constructors
ConversationBuilder(Single, Single)
Constructor for the ConversationBuilder class to initialize it with settings.
Declaration
public ConversationBuilder(float defaultTimeBetweenLines = 3F, float startTime = 0F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | defaultTimeBetweenLines | The default time between when each ConvoLine is started. |
System.Single | startTime | The starting time of the first line in the conversation. |
Methods
AddLine(String, Boolean, ProposerInfo.Emotion)
Adds a ConvoLine to the Conversation being built.
Declaration
public void AddLine(string line, bool isPlayer = false, ProposerInfo.Emotion emotion = ProposerInfo.Emotion.HAPPY)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | Text of the conversation line |
System.Boolean | isPlayer | Whether the player character is speakin the line |
ProposerInfo.Emotion | emotion | Emotion of the speaker when line is spoken |
AddLine(String, Single, Boolean, ProposerInfo.Emotion)
Adds a ConvoLine to the Conversation being built.
Declaration
public void AddLine(string line, float duration, bool isPlayer = false, ProposerInfo.Emotion emotion = ProposerInfo.Emotion.HAPPY)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | Text of the conversation line |
System.Single | duration | The duration from when the added line will be spoken to when the next line (if added) will be spoken. |
System.Boolean | isPlayer | Whether the player character is speakin the line |
ProposerInfo.Emotion | emotion | Emotion of the speaker when line is spoken |
AddLine(String, Single, Color, Boolean, ProposerInfo.Emotion)
Adds a ConvoLine to the Conversation being built.
Declaration
public void AddLine(string line, float duration, Color color, bool isPlayer = false, ProposerInfo.Emotion emotion = ProposerInfo.Emotion.HAPPY)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | Text of the conversation line |
System.Single | duration | The duration from when the added line will be spoken to when the next line (if added) will be spoken. |
UnityEngine.Color | color | Color of the text being displayed |
System.Boolean | isPlayer | Whether the player character is speakin the line |
ProposerInfo.Emotion | emotion | Emotion of the speaker when line is spoken |
AddLine(String, Color, Boolean, ProposerInfo.Emotion)
Adds a ConvoLine to the Conversation being built.
Declaration
public void AddLine(string line, Color color, bool isPlayer = false, ProposerInfo.Emotion emotion = ProposerInfo.Emotion.HAPPY)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | Text of the conversation line |
UnityEngine.Color | color | Color of the text being displayed |
System.Boolean | isPlayer | Whether the player character is speakin the line |
ProposerInfo.Emotion | emotion | Emotion of the speaker when line is spoken |
Remarks
Currently not being utilised; all text are black in the current version of the game.
Concat(Conversation)
Concatanates a Conversation to the end of the conversation being built.
Declaration
public void Concat(Conversation conversation)
Parameters
Type | Name | Description |
---|---|---|
Conversation | conversation | Conversation to be concatanated to the end |
ToConversation()
Returns a clone of the Conversation being built.
Declaration
public Conversation ToConversation()
Returns
Type | Description |
---|---|
Conversation | Clone of Conversation being built. |