LeviLamina
Loading...
Searching...
No Matches
npc.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CurrentCmdVersion.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Json { class Value; }
11namespace npc { struct ActionContainer; }
12namespace npc { struct CommandAction; }
13namespace npc { struct UrlAction; }
14// clang-format on
15
16namespace npc {
17// functions
18// NOLINTBEGIN
19MCAPI void
20fillCommands(::npc::CommandAction& cmd, ::std::vector<::std::string_view> const& src, ::CurrentCmdVersion ver);
21
22MCAPI ::std::optional<::std::variant<::npc::CommandAction, ::npc::UrlAction>> fromJson(::Json::Value const& root);
23
24#ifdef LL_PLAT_C
25MCAPI ::std::string_view getActionValue(::std::variant<::npc::CommandAction, ::npc::UrlAction> const& action);
26
27MCAPI ::std::string_view getButtonLabel(::std::variant<::npc::CommandAction, ::npc::UrlAction> const& action);
28#endif
29
30MCAPI ::Json::Value toJson(::npc::CommandAction const& action);
31
32MCAPI ::Json::Value toJson(::npc::ActionContainer const& container);
33
34MCAPI ::Json::Value toJson(::npc::UrlAction const& urlAction);
35
36MCAPI ::std::string toString(::npc::ActionContainer const& container);
37// NOLINTEND
38
39} // namespace npc
Definition Value.h:16
Definition ActionContainer.h:13
Definition CommandAction.h:17
Definition UrlAction.h:11