Skip to content

DialogEvent ​

Struct

Source: DialogTypes.h

Description ​

The single payload type delivered to DialogEventFn for every kind of dialog event.

One shared shape for all four DialogEventType values, rather than a union or a type per event, keeps the runner's synchronous callback interface a single function pointer with no std::function and no heap-allocated event objects.

Properties ​

NameTypeDescription
typeDialogEventTypeWhich event this is; decides which fields below apply.
lineLineIdLine the event concerns; kNoLine on Ended after a bad id.
choiceChoiceIdkNoChoice except on ChoiceConfirmed.
taguint16_tLine tag, or choice tag on ChoiceConfirmed. Never interpreted.

Released under the MIT License.