Table of Contents

Class DialogueEventData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Event data for dialogue interactions, carrying the NPC speaker reference and dialogue node context. Used by ECA conditions and actions that operate within a dialogue tree.

public class DialogueEventData : EventData
Inheritance
DialogueEventData
Inherited Members

Constructors

DialogueEventData(ICharacter, ICharacter, int, int)

Constructs a new DialogueEventData.

public DialogueEventData(ICharacter initiator, ICharacter speaker, int nodeId, int choiceIndex = -1)

Parameters

initiator ICharacter

The player character participating in the dialogue.

speaker ICharacter

The NPC or character speaking.

nodeId int

The current dialogue node ID.

choiceIndex int

The selected choice index, or -1 if none.

Properties

ChoiceIndex

The index of the choice selected by the player, or -1 if no choice was made (e.g., on node entry).

public int ChoiceIndex { get; }

Property Value

int

NodeId

The current dialogue node ID in the dialogue tree.

public int NodeId { get; }

Property Value

int

Speaker

The NPC or character that is speaking in the dialogue.

public ICharacter Speaker { get; }

Property Value

ICharacter