A first attempt to make dialogue capability for module

This commit is contained in:
Blue 2025-04-01 19:46:35 +03:00
parent 8187d045cd
commit ab9a0af05e
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 190 additions and 30 deletions

View file

@ -12,6 +12,7 @@
namespace Shared {
enum Result {
success,
grab,
forbidden,
unhandled,
error
@ -19,11 +20,12 @@ namespace Shared {
typedef std::map<Result, Strings> Responses;
constexpr std::array<std::pair<Result, std::string_view>, 4> results = {{
constexpr std::array<std::pair<Result, std::string_view>, 5> results = {{
{ success, "success" },
{ grab, "grab" },
{ forbidden, "forbidden" },
{ unhandled, "unhandled" },
{ error, "error" },
{ error, "error" }
}};