|
OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
|
#include <ActionCatalogue.h>
Public Member Functions | |
| void | add (ActionSpec spec) |
| const std::vector< ActionSpec > & | actions () const noexcept |
| nlohmann::json | replySchema () const |
| std::string | replyInstruction () const |
Static Public Member Functions | |
| static ActionCatalogue | base () |
The actions available to one NPC, and the reply schema built from them.
One definition serves two things: the schema the answer is asked for in, and the instruction sent with the prompt, which is what a provider that ignores the schema still reads.
|
inlinenoexcept |
| void OpenAnima::Core::ActionCatalogue::add | ( | ActionSpec | spec | ) |
Adds an action, or replaces the one that already has its name.
| spec | Action to add. Its name must not be empty. |
|
static |
| std::string OpenAnima::Core::ActionCatalogue::replyInstruction | ( | ) | const |
| nlohmann::json OpenAnima::Core::ActionCatalogue::replySchema | ( | ) | const |