OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
Loading...
Searching...
No Matches
Public Attributes | List of all members
OpenAnima::Core::Event Struct Reference

#include <Event.h>

Public Attributes

RequestId id {}
 Turn the event belongs to.
 
EventKind kind {}
 What happened.
 
std::string text
 Piece of the answer, for a Delta.
 
Completion completion
 Answer and why it ended, for a Finished.
 
std::optional< NpcReply > reply
 Reply, for a Finished turn that asked for one.
 
std::string error
 What went wrong, for a Failed.
 

Detailed Description

One thing that happened to one turn.

Only the fields of its kind carry something: text for a Delta, completion and reply for a Finished and error for a Failed. A Delta of a turn that asked for a reply carries the dialogue, not the JSON that is being written.


The documentation for this struct was generated from the following file: