|
OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
|
#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. | |
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.