Class DialogueParser
The main entry point for parsing Ibralogue dialogue files.
Inherited Members
Namespace: Ibralogue.Parser
Assembly: .dll
Syntax
public static class DialogueParser
Methods
| Edit this page View SourceClearCache()
Clears the entire parse cache.
Declaration
public static void ClearCache()
InvalidateCache(DialogueAsset)
Removes a specific asset from the parse cache, forcing a re-parse on the next call to ParseDialogue(DialogueAsset).
Declaration
public static void InvalidateCache(DialogueAsset dialogueAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| DialogueAsset | dialogueAsset |
ParseDialogue(DialogueAsset)
Parses a dialogue asset into a list of conversations. Results are cached so that repeated calls with the same asset skip the parsing pipeline.
Declaration
public static List<Conversation> ParseDialogue(DialogueAsset dialogueAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| DialogueAsset | dialogueAsset |
Returns
| Type | Description |
|---|---|
| List<Conversation> | A list of Conversation objects representing all conversations in the dialogue file. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the dialogue has no conversations. |