Table of Contents

Class ConversationInjection

Namespace
SuzerainModdingKit.StoryFragments.Conversation
Assembly
SuzerainModdingKit.dll

A list of nodes to be injected into a conversation.

public class ConversationInjection
Inheritance
ConversationInjection
Inherited Members

Constructors

ConversationInjection(string)

Creates a new instance of this class.

public ConversationInjection(string conversationTitle)

Parameters

conversationTitle string

The title of the conversation to inject the nodes into.

Exceptions

ArgumentNullException

Thrown if any required arguments are null.

Properties

ConversationTitle

The conversation title to inject the nodes into.

public string ConversationTitle { get; }

Property Value

string

IsSealed

If true, new nodes cannot be added.

public bool IsSealed { get; }

Property Value

bool

Nodes

Read-only list of nodes to be injected.

public ReadOnlyCollection<ConversationNode> Nodes { get; }

Property Value

ReadOnlyCollection<ConversationNode>

Methods

AddNode(ConversationNode)

Add a node to the list.

public ConversationInjection AddNode(ConversationNode node)

Parameters

node ConversationNode

The node to add.

Returns

ConversationInjection

The same ConversationInjection object for chaining.

Exceptions

ArgumentNullException

Thrown if any required arguments are null.

InvalidOperationException

Thrown if the object is sealed.

Register()

Register this ConversationInjection in the ConversationRegistry.

public void Register()

Exceptions

InvalidOperationException

Thrown if registration is closed.

See Also

Seal()

Seal the object. New nodes cannot be added once this is called. This is automatically called when the injection is registered.

public void Seal()