Skip to content

YaDialogStateListener

DEPRECATED
DialogStateListener listens to dialogue states of speakers.

Functions

void OnEnterDialogState(function callback<YaEntity, YaDialogState>)

Fired when entering a conversation
  • callback A callback with characters in the conversation and dialogue information
    1. characterEntity The character entity
    2. stateInfo Including dialogue state and dialogue data

void OnExitDialogState(function callback<YaEntity, YaDialogState>)

Fired when the conversation is interrupted
  • callback A callback with characters in the conversation and dialogue information
    1. characterEntity The character entity
    2. stateInfo Including dialogue state and dialogue data

void OnDialogStateEnds(function callback<YaEntity, YaDialogState>)

SERVER ONLY 
Fired when the conversation is finished
  • callback A callback with characters in the conversation and dialogue information
    1. characterEntity The character entity
    2. stateInfo Including dialogue state and dialogue data