Table of Contents

Class DisplayDialogueAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA action that triggers a server-authoritative dialogue session. On the server, raises OnServerDialogueRequested which the InteractableSystem subscribes to. On the client, this action is a no-op.

[Serializable]
public class DisplayDialogueAction : BaseAction, IAction
Inheritance
DisplayDialogueAction
Implements
Inherited Members

Fields

DialogueTemplate

The dialogue template to start when this action executes on the server.

public DialogueTemplate DialogueTemplate

Field Value

DialogueTemplate

SpeakerName

Optional speaker name override. If empty, resolves from event data.

public string SpeakerName

Field Value

string

Methods

Execute(ICharacter, EventData)

On the server: raises OnServerDialogueRequested to start a dialogue session. On the client: no-op (dialogue is driven by server broadcasts).

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action.

eventData EventData

Event data used for context.