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
actorQuestReferenceAliasThe alias whose actor opens the conversation.
branchIDialogueBranchThe dialogue branch whose topics the player chooses among.
Exceptions
- ArgumentNullException
actororbranchisnull.
Properties
Actor
The alias whose actor opens the conversation.
public QuestReferenceAlias Actor { get; }
Property Value
Branch
The dialogue branch whose topics the player chooses among.
public IDialogueBranch Branch { get; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Equals(SceneAction?)
public override sealed bool Equals(SceneAction? other)
Parameters
otherSceneAction
Returns
Equals(SceneConversation?)
public bool Equals(SceneConversation? other)
Parameters
otherSceneConversation
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SceneConversation?, SceneConversation?)
public static bool operator ==(SceneConversation? left, SceneConversation? right)
Parameters
leftSceneConversationrightSceneConversation
Returns
operator !=(SceneConversation?, SceneConversation?)
public static bool operator !=(SceneConversation? left, SceneConversation? right)
Parameters
leftSceneConversationrightSceneConversation