This contains the source code documentation of the class subsystem_Glossary.


Inherits: DialogicSubsystem

Subsystem that handles glossaries.



voidadd_glossary ( path: String )
voidclear_game_state ( _clear_flag: int = 0 )
DialogicGlossaryfind_glossary ( entry_key: String )
Stringparse_glossary ( text: String )

Property Descriptions

var color_overrides =

Any key in this dictionary will overwrite the color for any item with that name.

var enabled = true

If false, no parsing will be done.

var glossaries =

List of glossary resources that are used.

Method Descriptions

func add_glossary ( path: String ) ⇒ void

No description available.

func clear_game_state ( _clear_flag: int = 0 ) ⇒ void

No description available.

func find_glossary ( entry_key: String ) ⇒ DialogicGlossary

Iterates over all glossaries and returns the first one that matches the entry_key. Returns null if none of the glossaries has an entry with that key. If translation is enabled, uses the entry_key as well to check _translation_keys. Runtime complexity: O(n), where n is the number of glossaries.

func parse_glossary ( text: String ) ⇒ String

No description available.