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/CommandPermissionLevel.h"
7#include "mc/server/commands/CurrentCmdVersion.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Json { class Value; }
12namespace npc { struct ActionContainer; }
13namespace npc { struct CommandAction; }
14namespace npc { struct UrlAction; }
15// clang-format on
16
17namespace npc {
18// functions
19// NOLINTBEGIN
20MCAPI void
21fillCommands(::npc::CommandAction& cmd, ::std::vector<::std::string_view> const& src, ::CurrentCmdVersion ver);
22
23MCAPI ::std::optional<::std::variant<::npc::CommandAction, ::npc::UrlAction>> fromJson(::Json::Value const& root);
24
25MCAPI_C ::std::string_view getActionValue(::std::variant<::npc::CommandAction, ::npc::UrlAction> const& action);
26
27MCAPI_C ::std::string_view getButtonLabel(::std::variant<::npc::CommandAction, ::npc::UrlAction> const& action);
28
29MCAPI ::Json::Value toJson(::npc::CommandAction const& action);
30
31MCAPI ::Json::Value toJson(::npc::ActionContainer const& container);
32
33MCAPI ::Json::Value toJson(::npc::UrlAction const& urlAction);
34
35MCAPI ::std::string toString(::npc::ActionContainer const& container);
36// NOLINTEND
37
38// static variables
39// NOLINTBEGIN
40MCAPI char const& COMMAND_DELIMITER();
41
42MCAPI ::CommandPermissionLevel const& COMMAND_PERMISSION();
43
44MCAPI uint64 const& MAX_NAME_LENGTH();
45
46MCAPI_C uint64 const& UNUSED_ACTION_INDEX();
47// NOLINTEND
48
49} // namespace npc
Definition Value.h:16
Definition ActionContainer.h:13
Definition CommandAction.h:17
Definition UrlAction.h:11