Table of Contents

Class SceneConversation

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

A conversation the actor filling an alias opens with the player in a ScenePhase.

public sealed record SceneConversation : SceneAction, IEquatable<SceneAction>, IEquatable<SceneConversation>
Inheritance
SceneConversation
Implements
Inherited Members

Remarks

The actor walks to the player and greets, the player chooses among the topics of a dialogue branch, and the phase ends once that conversation has ended. Its EndPhaseIndex can name only that phase. The branch is shown for the actor as the phase begins, replacing any speaker it was shown for, and hidden as the phase ends. The next phase begins in the frame the conversation closes, so a goodbye the actor says as the player leaves is said over the first line of that phase. A branch created with a goodbye of no responses makes the actor say none. A later phase's Condition reads the choice from the branch's ChosenTopics. A scene resumed after a load in this phase begins the phase again, and the actor opens the conversation again. The scene ends with Interrupted as the conversation opens where the actor's DialogueInterruption is End.

Constructors

SceneConversation(QuestReferenceAlias, IDialogueBranch)

Creates a conversation.

public SceneConversation(QuestReferenceAlias actor, IDialogueBranch branch)

Parameters

actor QuestReferenceAlias

The alias whose actor opens the conversation.

branch IDialogueBranch

The dialogue branch whose topics the player chooses among.

Exceptions

ArgumentNullException

actor or branch is null.

Properties

Actor

The alias whose actor opens the conversation.

public QuestReferenceAlias Actor { get; }

Property Value

QuestReferenceAlias

Branch

The dialogue branch whose topics the player chooses among.

public IDialogueBranch Branch { get; }

Property Value

IDialogueBranch

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(SceneAction?)

public override sealed bool Equals(SceneAction? other)

Parameters

other SceneAction

Returns

bool

Equals(SceneConversation?)

public bool Equals(SceneConversation? other)

Parameters

other SceneConversation

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SceneConversation?, SceneConversation?)

public static bool operator ==(SceneConversation? left, SceneConversation? right)

Parameters

left SceneConversation
right SceneConversation

Returns

bool

operator !=(SceneConversation?, SceneConversation?)

public static bool operator !=(SceneConversation? left, SceneConversation? right)

Parameters

left SceneConversation
right SceneConversation

Returns

bool