3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/server/commands/CurrentCmdVersion.h"
14namespace Json {
class Value; }
24fillCommands(::npc::CommandAction& cmd, ::std::vector<::std::string_view>
const& src, ::CurrentCmdVersion ver);
26MCNAPI ::std::optional<::std::variant<::npc::CommandAction, ::npc::UrlAction>> fromJson(::Json::Value
const& root);
29MCNAPI ::std::string_view getRawButtonLabel(::std::variant<::npc::CommandAction, ::npc::UrlAction>
const& action);
33handlePacket(::Actor& owner, ::Player& initiator, ::NpcComponent& npcComp, ::NpcRequestPacket
const& request);
36MCNAPI
void setActionValue(::std::variant<::npc::CommandAction, ::npc::UrlAction>& action, ::std::string_view value);
38MCNAPI
void setButtonLabel(::std::variant<::npc::CommandAction, ::npc::UrlAction>& action, ::std::string_view value);
41MCNAPI ::Json::Value toJson(::npc::CommandAction
const& action);
43MCNAPI ::Json::Value toJson(::npc::ActionContainer
const& container);
45MCNAPI ::Json::Value toJson(::npc::UrlAction
const& urlAction);
Definition NpcComponent.h:24
Definition NpcRequestPacket.h:19
Definition ActionContainer.h:11
Definition CommandAction.h:17
Definition UrlAction.h:11