Class ConversationNodeModdedNameSelector
- Assembly
- SuzerainModdingKit.dll
Selects a modded conversation node by its name.
public class ConversationNodeModdedNameSelector : ConversationNodeSelector
- Inheritance
-
ConversationNodeModdedNameSelector
- Inherited Members
Constructors
ConversationNodeModdedNameSelector(string, string)
Creates a new instance of this class.
public ConversationNodeModdedNameSelector(string name, string conversationName = null)
Parameters
namestringThe name of the node.
conversationNamestringOptional: The name of the conversation to search for the node in. If null, searches the current conversation.
Exceptions
- ArgumentNullException
Thrown if any required arguments are null.
Properties
ConversationName
Optional: The name of the conversation to search for the node in. If null, searches the current conversation.
public string ConversationName { get; }
Property Value
Name
The name of the node.
public string Name { get; }
Property Value
Methods
Resolve(Conversation)
Select the conversation node.
public override DialogueEntry Resolve(Conversation currentConversation)
Parameters
currentConversationConversationThe current conversation.
Returns
- DialogueEntry
The dialogue entry of the resolved node or null if it could not be found.
Exceptions
- ArgumentNullException
May throw if required arguments are null.