EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Settings.DialogueRegistry Class Reference

The DialogueRegistry class is used for store and configure information which may be used across dialogue assets and in the editor, such as global variables and character libraries. More...

Inherits ScriptableObject.

Public Member Functions

int FindVariable (string varName)
 Finds and returns the index of the global variable with the specified name, if it exists.
 

Properties

CharacterLibrary CharacterLibrary [get, set]
 Gets or sets the character library to use.
 
List< GlobalNodeVariableGlobalVariables [get, set]
 Gets or sets the List of global variables to use.
 

Private Attributes

CharacterLibrary characterLibrary
 The character library used by the registry.
 
List< GlobalNodeVariablevariables = new List<GlobalNodeVariable>()
 The List of global variables defined in the registry.
 

Detailed Description

The DialogueRegistry class is used for store and configure information which may be used across dialogue assets and in the editor, such as global variables and character libraries.

Member Function Documentation

◆ FindVariable()

int EasyTalk.Settings.DialogueRegistry.FindVariable ( string varName)

Finds and returns the index of the global variable with the specified name, if it exists.

Parameters
varNameThe name of the variable to retrieve.
Returns
The index of the specified global variable within the registry's global variable list. If the variable can't be found, this method returns -1.

Member Data Documentation

◆ characterLibrary

CharacterLibrary EasyTalk.Settings.DialogueRegistry.characterLibrary
private

The character library used by the registry.

◆ variables

List<GlobalNodeVariable> EasyTalk.Settings.DialogueRegistry.variables = new List<GlobalNodeVariable>()
private

The List of global variables defined in the registry.

Property Documentation

◆ CharacterLibrary

CharacterLibrary EasyTalk.Settings.DialogueRegistry.CharacterLibrary
getset

Gets or sets the character library to use.

◆ GlobalVariables

List<GlobalNodeVariable> EasyTalk.Settings.DialogueRegistry.GlobalVariables
getset

Gets or sets the List of global variables to use.